Share via


ContextNodeCollection.Contains Method

Gets a value indicating whether the ContextNodeCollection contains a specific ContextNode object.

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

Syntax

'Declaration
Public Function Contains ( _
    node As ContextNode _
) As Boolean
'Usage
Dim instance As ContextNodeCollection 
Dim node As ContextNode 
Dim returnValue As Boolean 

returnValue = instance.Contains(node)
public bool Contains(
    ContextNode node
)
public:
bool Contains(
    ContextNode^ node
)
public function Contains(
    node : ContextNode
) : boolean

Parameters

Return Value

Type: System.Boolean
true if the ContextNodeCollection contains the specified ContextNode object; otherwise, false.

Examples

The following example shows how to check if a specific ContextNode, myNode, is contained in a ContextNodeCollection, nodes.

If nodes.Contains(myNode) Then
    MessageBox.Show("The node is in the collection.")
if (nodes.Contains(myNode))
    MessageBox.Show("The node 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

ContextNodeCollection Class

ContextNodeCollection Members

System.Windows.Ink Namespace