TiPlotComponent.AddLabel

TiPlotComponent See Also

Adds a single Label Object to the plot.

function AddLabel : Integer;

Description

Call AddLabel to add a single Label Object to the plot. The return value from the function is an unique index used for manipulating the object. Use the Labels property to get or set the properties of the data view object.

The index value for this object will decrement by one each time a Label Object with a lower index value is deleted.

Example

Delphi

Index := iComponent.AddLabel;

C++ Builder

Index = iComponent->AddLabel();

Note: Index is zero based. Index 0 can never be deleted.

Contents | Index | Previous | Next