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

Parameters

Return Value

Whether the ContextLinkCollection contains the specific ContextLink object.

Example

The following example shows how to determine whether a specific ContextLink, myLink, is contained in a ContextLinkCollection, 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 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
System.Windows.Ink Namespace