Type | Description | |||
Long | A long expression that indicates the number of assistant nodes. |
The CountAssistants property counts the assistant nodes assigned to the node. Use the AddAssistant method to add an assistant node. Use the RemoveAssistant node to remove an assistant node. Use the Assistant property to get an assistant node based on its index. Use the IsAssistant property to specify whether the node is an assistant node or a child node. Use the ShowAssistants property to hide all assistant nodes.
The following VB sample enumerates the assistant nodes, for the root node:
With ChartView1.Root For i = 0 To .CountAssistants - 1 Debug.Print .Assistant(i).Caption Next End With
The following C++ sample enumerates the assistant nodes, for the root node:
CNode root = m_chartview.GetRoot(); for ( long i = 0; i < root.GetCountAssistants(); i++ ) { CNode assistant = root.GetAssistant( COleVariant( i ) ); OutputDebugString( assistant.GetCaption() ); }
The following VB.NET sample enumerates the assistant nodes, for the root node:
With AxChartView1.Root Dim i As Integer For i = 0 To .CountAssistants - 1 Debug.WriteLine(.Assistant(i).Caption()) Next End With
The following C# sample enumerates the assistant nodes, for the root node:
EXORGCHARTLib.Node root = axChartView1.Root; for (int i = 0; i < root.CountAssistants; i++) { EXORGCHARTLib.Node node = root.get_Assistant(i); System.Diagnostics.Debug.WriteLine(node.Caption); }
The following VFP sample enumerates the assistant nodes, for the root node:
with thisform.ChartView1.Root For i = 0 To .CountAssistants - 1 wait window nowait .Assistant(i).Caption Next endwith