ContextNodeCollection.Item Property (Guid)
Gets the ContextNode object with the specified GUID within the ContextNodeCollection.
Namespace: System.Windows.Ink
Assembly: IAWinFX (in iawinfx.dll)
XML Namespace: https://schemas.microsoft.com/winfx/2006/xaml/presentation
Syntax
'Declaration
Public ReadOnly Default Property Item ( _
nodeId As Guid _
) As ContextNode
'Usage
Dim instance As ContextNodeCollection
Dim nodeId As Guid
Dim value As ContextNode
value = instance(nodeId)
public ContextNode this [
Guid nodeId
] { get; }
public:
property ContextNode^ default [Guid] {
ContextNode^ get (Guid nodeId);
}
/** @property */
public ContextNode get_Item (Guid nodeId)
Not applicable.
Parameters
- nodeId
The GUID of the ContextNode object to get.
Property Value
The ContextNode object with the specified GUID.
Remarks
You can access the Item property by using the collection's indexer, as shown in the example.
An ArgumentException is thrown if nodeId does not match an existing member of the ContextNodeCollection collection.
Example
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 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.
Version Information
.NET Framework
Supported in: 3.0
See Also
Reference
ContextNodeCollection Class
ContextNodeCollection Members
System.Windows.Ink Namespace