StrokeCollection.IndexOf Method (Stroke)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Returns the index of the specified Stroke in the StrokeCollection.

Namespace:   System.Windows.Ink
Assembly:  PresentationCore (in PresentationCore.dll)

public int IndexOf(
	Stroke stroke


Type: System.Windows.Ink.Stroke

The stroke whose position is required.

Return Value

Type: System.Int32

The index of the stroke.

The IndexOf method returns -1 if stroke is not a member of the StrokeCollection.

.NET Framework
Available since 3.0
Return to top