Not
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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 function IndexOf(
s : Stroke
) : int
Parameters
- s
Type: Microsoft.Ink.Stroke
Return Value
Type: System.Int32
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.
Examples
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 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information
.NET Framework
Supported in: 3.0