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 boolean Contains (
ContextNode node
)
public function Contains (
node : ContextNode
) : boolean
Not applicable.
Parameters
- node
The ContextNode object to check for.
Return Value
true if the ContextNodeCollection contains the specified ContextNode object; otherwise, false.
Example
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 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
ContextNodeCollection Class
ContextNodeCollection Members
System.Windows.Ink Namespace