VectorCollection.IndexOf(Vector) 方法

定义

确定 VectorCollection 中指定项的索引。Determines the index of the specified item in the VectorCollection.

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

参数

value
Vector

要在 Vector 中定位的 VectorCollectionThe Vector to locate in the VectorCollection.

返回

如果在 VectorCollection 中找到,则为 value 的索引;否则为 -1。The index of value if found in the VectorCollection; otherwise, -1.

实现

适用于

另请参阅