ChartDirector 7.1 (C++ Edition)

Box.getLeftX


Usage

int getLeftX() const;

Description

Gets the left x pixel coordinate of the box.

In some cases, the left x coordinate of a box may be dynamically determined. An example is the left x coordinate of an LegendBox with alignment set to Center. To determine the left x coordinate, the size of the box must be known first. For these cases, the left x coordinate is undefined until the legend box or the entire chart has been laid out (using BaseChart.layout or BaseChart.layoutLegend), or the chart image has been drawn (eg. using BaseChart.makeChart, BaseChart.makeChart2 or BaseChart.makeChart3).

Arguments

None

Return Value

The the left x pixel coordinate of the box.