Type | Description | |||
String | A string expression that identifies the key of the node. |
With ChartView1.Root .Key = "newKeyForRoot" End With
Assigning a new key for a node fails if the new key is already assigned to another node, or if it is empty.
The following C++ sample assigns a new key for the root node:
m_chartview.GetRoot().SetKey("newrootkey");
The following VB.NET sample assigns a new key for the root node:
With AxChartView1 .Root.Key = "newrootkey" End With
The following C# sample assigns a new key for the root node:
axChartView1.Root.Key = "newrootkey";
The following VFP sample assigns a new key for the root node:
With thisform.ChartView1 .Root.Key = "newrootkey" EndWith