Compartir a través de


Strokes.Item Property

Strokes.Item Property

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

Definition

Visual Basic .NET Public ReadOnly Property Item As Stroke
C# public Stroke Item { get; }
Managed C++ public: __property Stroke* get_Item(
int *index);

Property Value

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

This property is read-only. This property has no default value.

Parameters

index System.Int32. [in] The zero-based index of the Stroke object to get.

Exceptions

ArgumentException Leave Site: Specified stroke was not found
ObjectDisposedException Leave Site:

Remarks

An ArgumentOutOfRangeException Leave Site 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

[C#]

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

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

[Visual Basic .NET]

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)

See Also