Strokes.IndexOf Method
Returns the index of a specific Stroke object within a Strokes collection.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink (in microsoft.ink.dll)
Syntax
'Declaration
Public Function IndexOf ( _
s As Stroke _
) As Integer
'Usage
Dim instance As Strokes
Dim s As Stroke
Dim returnValue As Integer
returnValue = instance.IndexOf(s)
public int IndexOf (
Stroke s
)
public:
int IndexOf (
Stroke^ s
)
public int IndexOf (
Stroke s
)
public function IndexOf (
s : Stroke
) : int
Not applicable.
Parameters
- s
Return Value
Returns the index of the Stroke within the Strokes collection.
Remarks
The Stroke object represented by the s parameter must be associated with the same Ink object as the Strokes collection.
If the Id property of the Stroke, represented by the s parameter, does not match one of the IDs in the Strokes collection, this method returns -1.
Example
This C# example finds the index of a particular Stroke object, theStroke
, in a Strokes collection, theStrokes
.
int theIndex = theStrokes.IndexOf(theStroke);
This Microsoft Visual Basic.NET example finds the index of a particular Stroke object, theStroke
, in a Strokes collection, theStrokes
.
Dim theIndex As Integer = theStrokes.IndexOf(theStroke)
Platforms
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.
Version Information
.NET Framework
Supported in: 3.0
See Also
Reference
Strokes Class
Strokes Members
Microsoft.Ink Namespace
Stroke