CharKeyFrameCollection.Contains(CharKeyFrame) メソッド
定義
指定した CharKeyFrame がコレクションに含まれているかどうかを示す値を取得します。Gets a value that indicates whether the collection contains the specified CharKeyFrame.
public:
bool Contains(System::Windows::Media::Animation::CharKeyFrame ^ keyFrame);
public bool Contains (System.Windows.Media.Animation.CharKeyFrame keyFrame);
member this.Contains : System.Windows.Media.Animation.CharKeyFrame -> bool
Public Function Contains (keyFrame As CharKeyFrame) As Boolean
パラメーター
- keyFrame
- CharKeyFrame
コレクション内で検索する CharKeyFrame。The CharKeyFrame to locate in the collection.
戻り値
コレクションに keyFrame
が含まれている場合は true
。それ以外の場合は false
。true
if the collection contains keyFrame
; otherwise, false
.
注釈
このメソッドは、線形検索を実行します。したがって、平均実行時間はにCount比例します。This method performs a linear search; therefore, the average execution time is proportional to Count. つまり、このメソッドは O (n) 演算です。ここで** 、n Countはです。That is, this method is an O(n) operation, where n is Count.
このメソッドは、を呼びObject.Equals出すことによって等価性を判断します。This method determines equality by calling Object.Equals.