ThicknessKeyFrameCollection.Contains(ThicknessKeyFrame) ThicknessKeyFrameCollection.Contains(ThicknessKeyFrame) ThicknessKeyFrameCollection.Contains(ThicknessKeyFrame) ThicknessKeyFrameCollection.Contains(ThicknessKeyFrame) Method

定義

取得值,指出集合是否包含指定的 ThicknessKeyFrameGets a value that indicates whether the collection contains the specified ThicknessKeyFrame.

public:
 bool Contains(System::Windows::Media::Animation::ThicknessKeyFrame ^ keyFrame);
public bool Contains (System.Windows.Media.Animation.ThicknessKeyFrame keyFrame);
member this.Contains : System.Windows.Media.Animation.ThicknessKeyFrame -> bool
Public Function Contains (keyFrame As ThicknessKeyFrame) As Boolean

參數

keyFrame
ThicknessKeyFrame ThicknessKeyFrame ThicknessKeyFrame ThicknessKeyFrame

要在集合中尋找的 ThicknessKeyFrameThe ThicknessKeyFrame to locate in the collection.

傳回

如果集合包含 keyFrame,則為 true,否則為 falsetrue if the collection contains keyFrame; otherwise, false.

備註

這個方法會執行線性搜尋;因此,平均執行時間成正比CountThis method performs a linear search; therefore, the average execution time is proportional to Count. 亦即,這個方法是 O (n) 運算,其中nCountThat is, this method is an O(n) operation, where n is Count.

這個方法會判斷是否相等,藉由呼叫Object.EqualsThis method determines equality by calling Object.Equals.

適用於

另請參閱