CustomStrokes.Item Property
CustomStrokes.Item Property |
Gets the Strokes collection at the specified index within the CustomStrokes collection.
Definition
Visual Basic .NET Public ReadOnly Property Item As Strokes C# public Strokes Item { get; } Managed C++ public: __property Strokes* get_Item(
int *index);
Property Value
Microsoft.Ink.Strokes. The Strokes collection at the specified index within the CustomStrokes collection.
This property is read-only. This property has no default value.
Parameters
index System.Int32. [in] The zero-based index of the Strokes collection to get.
Exceptions
ArgumentException : The specified identifier was not found.
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
[C#]
This C# example gets the first Strokes object from the CustomStrokes collection of an Ink object, theInk.
Strokes firstSetOfStrokes = theInk.CustomStrokes[0];
[Visual Basic .NET]
This Microsoft® Visual Basic® .NET example gets the first Strokes object from the CustomStrokes collection of an Ink object, theInk.
Dim firstSetOfStrokes As Strokes = theInk.CustomStrokes.Item(0)
See Also