property ChartView.SelectNode as Variant
Specifies the selected node.

TypeDescription
Variant A Node object that indicates the selected node or a string expression that indicates the key of the node being selected.

Use the SelectNode property to retrieve or sets the selected node. The control fires the Select event when a node is selected. The SelColor property retrieves or sets a value that indicates the color used to mark the selected node. Use the DrawRoundNode property to draw round corners for the nodes. The ShadowNode property determines whether the control displays a shadow for nodes. Use the ShadowNode property to hide the shadow for a specific node. Use the Key property to determine the key of the node. Use the Caption property to specify the caption of the node.

The following VB sample selects the node with the key "key":

ChartView1.SelectNode = "key"

The following VB sample prints the caption of the selected node:

With ChartView1
    Debug.Print .SelectNode.Caption
End With

The following C++ sample selects the node with the key "key":

m_chartview.SetSelectNode( COleVariant( "key" ) );

The following C++ sample prints the caption of the selected node:

CNode node( V_DISPATCH( &m_chartview.GetSelectNode() ) );
OutputDebugString( node.GetCaption() );

The following VB.NET sample selects the node with the key "key":

With AxChartView1
    .SelectNode = "key"
End With

The following VB.NET sample prints the caption of the selected node:

With AxChartView1
    Debug.WriteLine(.SelectNode.Caption())
End With

The following C# sample selects the node with the key "key":

axChartView1.SelectNode = "key";

The following C# sample prints the caption of the selected node:

EXORGCHARTLib.Node node = axChartView1.SelectNode as EXORGCHARTLib.Node;
System.Diagnostics.Debug.WriteLine(node.Caption);

The following VFP sample selects the node with the key "key":

With thisform.ChartView1
	.SelectNode = "key"
EndWith

The following VFP sample prints the caption of the selected node:

With thisform.ChartView1
	wait window nowait .SelectNode.Caption
EndWith