Skip to main content

TdxGaugeScaleOptionsCustomLayout.CenterPositionX Property

Specifies the absolute horizontal position of the scale‘s center within the parent object.

Declaration

property CenterPositionX: Integer read; write; default 0;

Property Value

Type Default
Integer 0

Remarks

The CenterPositionX and CenterPositionY properties are used collectively to specify the scale’s position within the parent object. The CenterPositionX property specifies the absolute distance (in pixels) between the parent object’s left border and the scale’s center.

Negative values of the CenterPositionX and CenterPositionY properties are valid as well. The negative value of the CenterPositionX property specifies how far (in pixels) the scale’s center is shifted left of the parent object’s left border, beyond the visible area.

The values of the CenterPositionX and CenterPositionY properties can be greater than the parent object’s absolute width and height, respectively. The CenterPositionX property values exceeding the parent object’s width specify how far the scale’s center is shifted to the right of the parent object’s right border, beyond the visible area.

If the CenterPositionX property is set to 0, the scale’s center is located on the parent object’s left border. If the CenterPositionX property is set to the absolute width (in pixels) of the parent object, the scale’s center is located on the parent object’s right border.

Note

The CenterPositionX and CenterPositionY properties determine the scale’s position within the parent object only if the CenterPositionType property is set to sptPixels.

The default value of the CenterPositionX property is 0.

See Also