Visual3DCollection.IndexOf(Visual3D) Visual3DCollection.IndexOf(Visual3D) Visual3DCollection.IndexOf(Visual3D) Visual3DCollection.IndexOf(Visual3D) Method

定义

获取指定的 Visual3D 对象的第一个匹配项的索引。Gets the index of the first occurrence of the specified Visual3D object.

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

参数

value
Visual3D Visual3D Visual3D Visual3D

要搜索的 Visual3DThe Visual3D for which to search.

返回

指定的 Visual3D 的索引;如果 valuenull 或具有不同的可视化父级,则为 -1。The index of the specified Visual3D, or -1 if value is null or has a different visual parent.

实现

适用于