語言

TriggerActionCollection.IndexOf(TriggerAction) 方法

定義

回傳集合中指定項目的索引。

public:
 virtual int IndexOf(System::Windows::TriggerAction ^ value);
public int IndexOf(System.Windows.TriggerAction value);
abstract member IndexOf : System.Windows.TriggerAction -> int
override this.IndexOf : System.Windows.TriggerAction -> int
Public Function IndexOf (value As TriggerAction) As Integer

參數

value
TriggerAction

TriggerAction要在收藏中找到的物件。

傳回

若value物件在集合中,則為 的TriggerAction索引;否則為 -1。

實作

適用於

另請參閱