TimelineCollection.IndexOf(Timeline) 方法

定義

取得 TimelineCollection 中 Timeline 物件以零起始的索引位置。

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

參數

value
Timeline

要尋找的物件。

傳回

這個清單內 value 的索引位置。 如果找不到,則傳回 -1。

實作

適用於