ContextNodeCollection.IndexOf 方法 (Guid)

返回属于 ContextNodeCollection 的指定 ContextNode 的索引。

命名空间:  System.Windows.Ink
程序集:  IAWinFX(在 IAWinFX.dll 中)

语法

声明
Public Function IndexOf ( _
    nodeId As Guid _
) As Integer
用法
Dim instance As ContextNodeCollection
Dim nodeId As Guid
Dim returnValue As Integer

returnValue = instance.IndexOf(nodeId)
public int IndexOf(
    Guid nodeId
)
public:
int IndexOf(
    Guid nodeId
)
public int IndexOf(
    Guid nodeId
)
public function IndexOf(
    nodeId : Guid
) : int

参数

返回值

类型:System.Int32
特定 ContextNode 对象在 ContextNodeCollection 中的索引。

备注

如果传入 Guid,但 ContextNodeCollection 中不存在具有该标识符的 ContextNode 对象,则 IndexOf 返回 -1。

平台

Windows Vista

.NET Framework 和 .NET Compact Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求

版本信息

.NET Framework

受以下版本支持:3.0

另请参见

参考

ContextNodeCollection 类

ContextNodeCollection 成员

IndexOf 重载

System.Windows.Ink 命名空间