Vector3DKeyFrameCollection.IndexOf(Vector3DKeyFrame) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
搜尋指定的 Vector3DKeyFrame 索引,並回傳整個集合中首次出現的零為基礎索引。
public:
int IndexOf(System::Windows::Media::Animation::Vector3DKeyFrame ^ keyFrame);
public int IndexOf(System.Windows.Media.Animation.Vector3DKeyFrame keyFrame);
member this.IndexOf : System.Windows.Media.Animation.Vector3DKeyFrame -> int
Public Function IndexOf (keyFrame As Vector3DKeyFrame) As Integer
參數
- keyFrame
- Vector3DKeyFrame
在收藏中尋找。Vector3DKeyFrame
傳回
若找到,則為整個集合中首次出現 keyFrame 的零基索引;否則,為 -1。
備註
該集合從第一個關鍵影格開始向前搜尋,直到最後一個關鍵影格結束。
此方法執行線性搜尋;因此,平均執行時間與 Count成正比。 也就是說,此方法是一個 O(n) 運算,其中 n 為 Count。
此方法透過呼叫 Object.Equals來判定等號。