TiPlotComponent.AddLegend
TiPlotComponent See Also
Adds a single legend object to the plot.
function AddLegend : Integer;
Description
Call AddLegend to add a single legend object to the plot. The return value
from the function is a unique index used for manipulating the object. Use the Legend property to get or set the properties of the legend object.
The index value for this object will decrement by one each time a legend
object with a lower index value is deleted.
Currently, only one legend object is supported at this time and the multiple
legend interface is for future expansion. The LegendCount, AddLegend,
DeleteLegend, and RemoveAllLegends are reserved for property editors at this time. Always
use an Index of zero when accessing the legend.
Example
Delphi
Index := iComponent.AddLegend;
C++ Builder
Index = iComponent->AddLegend();
Contents | Index | Previous | Next