ContextNodeCollection.IndexOf - метод (Guid)
Обновлен: Ноябрь 2007
Returns the index of a specific ContextNode object within a ContextNodeCollection by using the node's identifier.
Пространство имен: Microsoft.Ink
Сборка: Microsoft.Ink.Analysis (в Microsoft.Ink.Analysis.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
Параметры
- nodeId
Тип: System.Guid
The identifier of the ContextNode object to check for.
Возвращаемое значение
Тип: System.Int32
The index of the specific ContextNode object within a ContextNodeCollection.
Примеры
The following example shows how to find the index of a specific ContextNode using its GUID.
Dim indexByGuid As Integer = nodes.IndexOf(myGuid)
int indexByGuid = nodes.IndexOf(myGuid);
Платформы
Windows Vista
Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.
Сведения о версии
.NET Framework
Поддерживается в версии: 3.0