IChartPointNameNode.Format

Syntax

Format: String;

Description

This property is read-only.

The Format property returns format of values of elements of current hierarchy level.

Example

This example assumes that there is the UiChart1 object of the UiChart type. CChartPointNameNode class description is given in the IChartPointNameNode interface.

Sub UiChart1OnGetPointNameRoot(Sender: Object; Args: IUiChartPointNameRootEventArgs);

Var

Root, MonthLevel, DayLevel: CChartPointNameNode;

Begin

Root := New CChartPointNameNode.Create(Null);

Root.Format := "dd MMMM yyyy";

Root.Name := "Years";

Root.Required := True;

MonthLevel := New CChartPointNameNode.Create(Root);

MonthLevel.Format := Root.Format;

MonthLevel.Name := "Months";

MonthLevel.Required := True;

DayLevel := New CChartPointNameNode.Create(MonthLevel);

DayLevel.Format := Root.Format;

DayLevel.Name := "Days";

DayLevel.Required := True;

Args.Result := Root As IChartPointNameNode;

End Sub UiChart1OnGetPointNameRoot;

Executing the example specifies the root element for hierarchy of names of the category axis.

See also:

IChartPointNameNode