QuaternionKeyFrameCollection.IndexOf(QuaternionKeyFrame) Methode
Definition
Sucht nach dem angegebenen QuaternionKeyFrame und gibt den nullbasierten Index des ersten Vorkommens innerhalb der gesamten Auflistung zurück.Searches for the specified QuaternionKeyFrame and returns the zero-based index of the first occurrence within the entire collection.
public:
int IndexOf(System::Windows::Media::Animation::QuaternionKeyFrame ^ keyFrame);
public int IndexOf (System.Windows.Media.Animation.QuaternionKeyFrame keyFrame);
member this.IndexOf : System.Windows.Media.Animation.QuaternionKeyFrame -> int
Public Function IndexOf (keyFrame As QuaternionKeyFrame) As Integer
Parameter
- keyFrame
- QuaternionKeyFrame
Die QuaternionKeyFrame, die in der Auflistung gesucht werden soll.The QuaternionKeyFrame to locate in the collection.
Gibt zurück
Der nullbasierte Index des ersten Vorkommens von keyFrame
in der gesamten Auflistung, sofern gefunden; andernfalls –1
.The zero-based index of the first occurrence of keyFrame
within the entire collection, if found; otherwise, -1
.
Hinweise
Die Auflistung wird nach vorne durchsucht, beginnend beim ersten Keyframe und endet mit dem letzten Keyframe.The collection is searched forward starting at the first key frame and ending at the last key frame.
Diese Methode führt eine lineare Suche aus. Daher ist die durchschnittliche Ausführungszeit proportional zu Count.This method performs a linear search; therefore, the average execution time is proportional to Count. Das heißt, diese Methode ist ein O (n)-Vorgang, ** wobei n Countist.That is, this method is an O(n) operation, where n is Count.
Diese Methode bestimmt Gleichheit durch Aufrufen Object.Equalsvon.This method determines equality by calling Object.Equals.