Share via


Strokes.RemoveAt Method

Strokes.RemoveAt Method

Removes the Stroke object at the specified index of the Strokes 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 Stroke object to remove from the collection.

Exceptions

ArgumentException Leave Site: The index value was not found in the Strokes collection.

Remarks

A Strokes collection is a set of references to data and is not the actual data itself. This method removes only the related object from a snapshot of, or reference to, the ink data and does not remove the actual ink data.

Examples

[C#]

This C# example removes the first element from a Strokes collection, theStrokes.

theStrokes.RemoveAt(0);
                

[VB.NET]

This Microsoft® Visual Basic® .NET example removes the first element from a Strokes collection, theStrokes.

theStrokes.RemoveAt(0)
                

See Also