Share via


ContextLinkCollection.Contains Method

Indicates whether the ContextLinkCollection contains a specific ContextLink object.

Namespace:  System.Windows.Ink
Assembly:  IAWinFX (in IAWinFX.dll)

Syntax

'Declaration
Public Function Contains ( _
    link As ContextLink _
) As Boolean
'Usage
Dim instance As ContextLinkCollection 
Dim link As ContextLink 
Dim returnValue As Boolean 

returnValue = instance.Contains(link)
public bool Contains(
    ContextLink link
)
public:
bool Contains(
    ContextLink^ link
)
public function Contains(
    link : ContextLink
) : boolean

Parameters

Return Value

Type: System.Boolean
A Boolean value which indicates whether the ContextLinkCollection contains the specific ContextLink object.

Examples

The following example shows how to determine whether a specific ContextLink named myLink is contained in a ContextLinkCollection named links.

If links.Contains(myLink) Then
    MessageBox.Show("The link is in the collection.")
End If
if (links.Contains(myLink))
    MessageBox.Show("The link is in the collection.");

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

ContextLinkCollection Class

ContextLinkCollection Members

System.Windows.Ink Namespace