ContextNodeBase.ParentNode Property
Gets the parent node of the ContextNodeBase in the context node tree.
Namespace: System.Windows.Ink.AnalysisCore
Assembly: IACore (in iacore.dll)
Syntax
'Declaration
Public ReadOnly Property ParentNode As ContextNodeBase
'Usage
Dim instance As ContextNodeBase
Dim value As ContextNodeBase
value = instance.ParentNode
public ContextNodeBase ParentNode { get; }
public:
property ContextNodeBase^ ParentNode {
ContextNodeBase^ get ();
}
/** @property */
public ContextNodeBase get_ParentNode ()
public function get ParentNode () : ContextNodeBase
Not applicable.
Property Value
The parent node of the ContextNodeBase in the context node tree.
Remarks
Returns a null reference (Nothing in Visual Basic) if this is the RootNode.
Example
This example uses a ContextNodeBase that was found using a Hashtable that maps tree nodes to context nodes using a System.Windows.Forms.TreeView, theTreeView
. After the parent node is found, a method called MarkNodeAsRed
is called to change the node's strokes to be red.
Dim selectedNode As ContextNodeBase = CType(Me.theTreeView.SelectedNode.Tag, ContextNodeBase)
Dim parentNode As ContextNodeBase = selectedNode.ParentNode
If Not (parentNode Is Nothing) Then
MarkNodeAsRed(parentNode)
End If
ContextNodeBase selectedNode = (ContextNodeBase)this.theTreeView.SelectedNode.Tag;
ContextNodeBase parentNode = selectedNode.ParentNode;
if (parentNode != null)
{
MarkNodeAsRed(parentNode);
}
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
ContextNodeBase Class
ContextNodeBase Members
System.Windows.Ink.AnalysisCore Namespace
ContextNodeBase.SubNodes