Compartir a través de


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 int IndexOf (
    ContextLink link
)
public function IndexOf (
    link : ContextLink
) : int
Not applicable.

Parameters

  • link
    The ContextLink object for which to find the index.

Return Value

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.

Example

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 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

ContextLinkCollection Class
ContextLinkCollection Members
Microsoft.Ink Namespace