Поделиться через


ContextNodeCollection.IndexOf - метод (ContextNode)

Обновлен: Ноябрь 2007

Returns the index of a specific ContextNode object within a ContextNodeCollection.

Пространство имен:  Microsoft.Ink
Сборка:  Microsoft.Ink.Analysis (в Microsoft.Ink.Analysis.dll)

Синтаксис

'Декларация
Public Function IndexOf ( _
    node As ContextNode _
) As Integer
'Применение
Dim instance As ContextNodeCollection
Dim node As ContextNode
Dim returnValue As Integer

returnValue = instance.IndexOf(node)
public int IndexOf(
    ContextNode node
)
public:
int IndexOf(
    ContextNode^ node
)
public int IndexOf(
    ContextNode node
)
public function IndexOf(
    node : ContextNode
) : int

Параметры

Возвращаемое значение

Тип: System.Int32
The index of the specific ContextNode object within a ContextNodeCollection.

Заметки

If a ContextNode object is passed in that does not exist in the ContextNodeCollection collection, then this method returns -1.

Примеры

The following example shows how to find the index of a specific ContextNode, myNode, that might be contained in a ContextNodeCollection, nodes.

Dim index As Integer = nodes.IndexOf(myNode)
            int index = nodes.IndexOf(myNode);

Платформы

Windows Vista

Среды .NET Framework и .NET Compact Framework поддерживают не все версии каждой платформы. Поддерживаемые версии перечислены в разделе Требования к системе для .NET Framework.

Сведения о версии

.NET Framework

Поддерживается в версии: 3.0

См. также

Ссылки

ContextNodeCollection Класс

ContextNodeCollection - члены

IndexOf - перегрузка

Microsoft.Ink - пространство имен