Sdílet prostřednictvím


ContextNodeCollection.Item Property (Guid)

Gets the ContextNode object with the specified GUID within the ContextNodeCollection.

Namespace:  Microsoft.Ink
Assembly:  Microsoft.Ink.Analysis (in Microsoft.Ink.Analysis.dll)

Syntax

'Declaration
Public ReadOnly Property Item ( _
    nodeId As Guid _
) As ContextNode
'Usage
Dim instance As ContextNodeCollection 
Dim nodeId As Guid 
Dim value As ContextNode 

value = instance.Item(nodeId)
public ContextNode this[
    Guid nodeId
] { get; }
public:
property ContextNode^ Item[Guid nodeId] {
    ContextNode^ get (Guid nodeId);
}
JScript does not support indexed properties.

Parameters

Property Value

Type: Microsoft.Ink.ContextNode
The ContextNode object with the specified GUID.

Remarks

You can access the Item property by using the collection's indexer, as shown in the following example.

An ArgumentException is thrown if the id does not match an existing member of the ContextNodeCollection collection.

Examples

The following example gets a node in a ContextNodeCollection, nodes by using a Guid, nodeGuid.

Dim node As ContextNode = nodes(nodeGuid)
            ContextNode node = nodes[nodeGuid];

Platforms

Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

ContextNodeCollection Class

ContextNodeCollection Members

Item Overload

Microsoft.Ink Namespace