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(
String *name);
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
name System.String. [in] The name of the Strokes collection to return from the collection.
Exceptions
ArgumentException : The specified identifier was not found.
Remarks
An ArgumentException is thrown if the name 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 a Strokes object from the CustomStrokes collection of an Ink object, theInk, added with the name "Autogenerated".
Strokes theStrokes = theInk.CustomStrokes["Autogenerated"];
[Visual Basic .NET]
This Microsoft® Visual Basic® .NET example gets the a Strokes object from the CustomStrokes collection of an Ink object, theInk, added with the name "Autogenerated".
Dim theStrokes As Strokes = theInk.CustomStrokes.Item("Autogenerated")
See Also