ContextLinkCollection.IndexOf Method
Returns the index of a specific ContextLink object within a ContextLinkCollection.
Namespace: Microsoft.Ink
Assembly: Microsoft.Ink.Analysis (in Microsoft.Ink.Analysis.dll)
Syntax
'Declaration
Public Function IndexOf ( _
link As ContextLink _
) As Integer
'Usage
Dim instance As ContextLinkCollection
Dim link As ContextLink
Dim returnValue As Integer
returnValue = instance.IndexOf(link)
public int IndexOf(
ContextLink link
)
public:
int IndexOf(
ContextLink^ link
)
public function IndexOf(
link : ContextLink
) : int
Parameters
link
Type: Microsoft.Ink.ContextLinkThe ContextLink object for which to find the index.
Return Value
Type: System.Int32
The index of the specific ContextLink object within a ContextLinkCollection.
Remarks
If a ContextLink object that does not exist in the ContextLinkCollection collection is passed in, this method returns -1.
Examples
This example shows how to find the index of a specific ContextLink, myLink, that might be contained in a ContextLinkCollection, links.
Dim index As Integer = links.IndexOf(myLink)
int index = links.IndexOf(myLink);
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