Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxGaugeScaleOptionsCustomLayout.CenterPositionY Property

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

#Declaration

Delphi
property CenterPositionY: 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 CenterPositionY 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 CenterPositionY property specifies how far (in pixels) the scale’s center is shifted up of the parent object’s 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 CenterPositionY property values exceeding the parent object’s height specify how far the scale’s center is shifted down from the parent object’s bottom border, beyond the visible area.

If the CenterPositionY property is set to 0, the scale’s center is located on the parent object’s top border. If the CenterPositionY property is set to the absolute height (in pixels) of the parent object, the scale’s center is located on the parent object’s bottom 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 CenterPositionY property is 0.

See Also