ContextLinkCollection.Item Property
Gets the ContextLink object at the specified index within the ContextLinkCollection.
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 ContextLink
'Usage
Dim instance As ContextLinkCollection
Dim index As Integer
Dim value As ContextLink
value = instance(index)
public ContextLink this [
int index
] { get; }
public:
property ContextLink^ default [int] {
ContextLink^ get (int index);
}
/** @property */
public ContextLink get_Item (int index)
Not applicable.
Parameters
- index
The zero-based index of the ContextLink object to get.
Property Value
The ContextLink object at the specified index within the ContextLinkCollection.
Remarks
You can access the Item property by using the collection's indexer as shown in this topic's example.
An ArgumentOutOfRangeException is thrown if the index does not match an existing member of the ContextLinkCollection collection.
Example
The following example gets the first node in a ContextLinkCollection, links
.
Dim firstLink As ContextLink = links(0)
ContextLink firstLink = links[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
ContextLinkCollection Class
ContextLinkCollection Members
System.Windows.Ink Namespace