GlobalTypeCollection.IndexOf(GlobalType) 方法

定义

获取指定项的位置。

public:
 int IndexOf(Microsoft::VisualStudio::Shell::Design::GlobalType ^ item);
public int IndexOf (Microsoft.VisualStudio.Shell.Design.GlobalType item);
member this.IndexOf : Microsoft.VisualStudio.Shell.Design.GlobalType -> int
Public Function IndexOf (item As GlobalType) As Integer

参数

item
GlobalType

要查找的项。

返回

Int32

找到该项的位置的索引; 如果该集合中不存在该项,则为-1。

适用于