version 1
CT Get legend text (area; object; legendItem) Text
Parameter | Type | Description | |
area | Longint | 4D Chart area | |
object | Longint | Object ID | |
legendItem | Integer | Legend item number | |
Function result | Text | Text 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.