Partager via


CustomStrokes.get_Item Method

CustomStrokes.get_Item Method

Returns the Strokes object at the known index in a CustomStrokes collection.

Definition

Visual Basic .NET Public Function get_Item( _
ByVal index As Integer _
) As Strokes
C# public Strokes get_Item(
int index
);
Managed C++ public: Strokes* get_Item(
int *index
);

Parameters

index System.Int32. The numeric index of the Strokes object to return from the collection.

Return Value

Microsoft.Ink.Strokes. Returns the Strokes object at the known index in a CustomStrokes collection.

Remarks

An error occurs if the index doesn't match any existing member of the CustomStrokes collection.

Note: [C#]  Use the CustomStrokes collection's indexer as shown in the following example rather than using the CustomStrokes collection's get_Item method.

Examples

[C#]

This C# example gets the first Strokes object from the CustomStrokes property of an Ink object.

Strokes theFirstStrokes = theInk.CustomStrokes[0];
                

[VB.NET]

This Microsoft® Visual Basic® .NET example gets the first Strokes object from the CustomStrokes property of an Ink object.

Dim theFirstStrokes As Strokes = theInk.CustomStrokes.Item(0)
                

See Also