CT Get legend text

4D - Documentation   Français   English   German   4D Chart, Command Theme List   4D Chart, Command Alphabetical List   Back   Previous   Next

version 1


CT Get legend text (area; object; legendItem) Text

ParameterTypeDescription
areaLongint4D Chart area
objectLongintObject ID
legendItemIntegerLegend item number
Function resultTextText of specified legend item

Description

The CT Get legend text command returns the text of the specified legend item.

legendItem is the number of the series (or category for a pie chart) in the legend. However, if the legend order has been reversed, legendItem reflects the original order, not the reversed order.

Example

This example returns the legend text of the first series in the chart specified by $ChartID.

   $Text:=CT Get legend text (Area;$ChartID;1)

See Also

CT GET LEGEND ATTRIBUTES, CT SET LEGEND ATTRIBUTES, CT SET LEGEND TEXT.


4D - Documentation   Français   English   German   4D Chart, Command Theme List   4D Chart, Command Alphabetical List   Back   Previous   Next