Share via


Strokes.Item Property

Gets the Stroke object at the specified index within the Strokes collection.

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

Syntax

'Declaration
Public ReadOnly Property Item ( _
    index As Integer _
) As Stroke
'Usage
Dim instance As Strokes 
Dim index As Integer 
Dim value As Stroke 

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

Parameters

Property Value

Type: Microsoft.Ink.Stroke
The Stroke object at the specified index within the Strokes collection.

Remarks

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

Note

In C#, use the collection's indexer as shown in the following example, instead of using the collection's Item property.

Examples

This C# example gets the first Stroke object from the Strokes collection, theStrokes.

Microsoft.Ink.Stroke theStroke = theStrokes[0];

This Microsoft Visual Basic.NET example gets the first Stroke object from the Strokes collection, theStrokes.

Dim theStroke As Microsoft.Ink.Stroke = theStrokes.Item(0)

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

Strokes Class

Strokes Members

Microsoft.Ink Namespace

Stroke