Share via


ContextLinkBaseCollection.IndexOf Method

Returns the index of a specific ContextLinkBase object within a ContextLinkBaseCollection.

Namespace:  System.Windows.Ink.AnalysisCore
Assembly:  IACore (in IACore.dll)

Syntax

'Declaration
Public Function IndexOf ( _
    link As ContextLinkBase _
) As Integer
'Usage
Dim instance As ContextLinkBaseCollection 
Dim link As ContextLinkBase 
Dim returnValue As Integer 

returnValue = instance.IndexOf(link)
public int IndexOf(
    ContextLinkBase link
)
public:
int IndexOf(
    ContextLinkBase^ link
)
public function IndexOf(
    link : ContextLinkBase
) : int

Parameters

Return Value

Type: System.Int32
The index of the specific ContextLinkBase object within a ContextLinkBaseCollection.

Remarks

If a ContextLinkBase object that does not exist in the ContextLinkBaseCollection collection is passed in, this method returns -1.

Examples

The following example shows how to find the index of a specific ContextLinkBase named myLink, which may be contained in a ContextLinkBaseCollection named links.

Dim index As Integer = links.IndexOf(myLink)
int index = links.IndexOf(myLink);

Platforms

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

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

See Also

Reference

ContextLinkBaseCollection Class

ContextLinkBaseCollection Members

System.Windows.Ink.AnalysisCore Namespace