CustomStrokes.RemoveAt Method

CustomStrokes.RemoveAt Method

Removes a Strokes collection at the specified index of the CustomStrokes collection.

Definition

Visual Basic .NET Public Sub RemoveAt( _
ByVal i As Integer _
)
C# public void RemoveAt(
int i
);
Managed C++ public: void RemoveAt(
int *i
);

Parameters

i System.Int32. The index of the Strokes collection to be removed from the CustomStrokes collection.

Exceptions

ArgumentException Leave Site: The parameter is not valid.

Remarks

A CustomStrokes collection is a reference to ink data and is not the actual data itself. This method removes only the related collection from a snapshot of, or reference to, the ink data and does not remove the actual ink data. To delete the collection from the actual ink data, call the Ink.DeleteStrokes method.

Examples

[C#]

This C# example removes the first element from the CustomStrokes collection of the Ink object in the InkCollector object, theInkCollector.

theInkCollector.Ink.CustomStrokes.RemoveAt(0);
                

[VB.NET]

This Microsoft® Visual Basic® .NET example removes the first element from the CustomStrokes collection of the Ink object in the InkCollector object, theInkCollector.

theInkCollector.Ink.CustomStrokes.RemoveAt(0)