Compartir a través de


ContextNodeCollection.Item Property (Int32)

Gets the ContextNode object at the specified index 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 ( _
    index As Integer _
) As ContextNode
'Usage
Dim instance As ContextNodeCollection
Dim index As Integer
Dim value As ContextNode

value = instance(index)
public ContextNode this [
    int index
] { get; }
public:
property ContextNode^ default [int] {
    ContextNode^ get (int index);
}
/** @property */
public ContextNode get_Item (int index)
Not applicable.

Parameters

  • index
    The zero-based index of the ContextNode object to get.

Property Value

The ContextNode object at the specified index within the ContextNodeCollection.

Remarks

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

An ArgumentOutOfRangeException exception is thrown if the index does not match an existing member of the ContextNodeCollection collection.

Example

The following example gets the first node in a ContextNodeCollection, nodes.

Dim firstNode As ContextNode = nodes(0)
ContextNode firstNode = nodes[0];

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