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.CenterPositionFactorX Property

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

#Declaration

Delphi
property CenterPositionFactorX: Single read; write;

#Property Value

Type
Single

#Remarks

The CenterPositionFactorX and CenterPositionFactorY properties are used collectively to specify the scale’s position within the parent object. The distance between the parent object’s left border and the scale’s center is the result of multiplying the CenterPositionFactorX property value by the parent object’s width.

Negative values of the CenterPositionFactorX and CenterPositionFactorY properties are valid as well. The negative value of the CenterPositionFactorX property specifies how far the scale’s center is shifted left of the parent object’s left border, beyond the visible area. The actual distance between the scale’s center and the parent object’s left border is calculated in the same manner as if the CenterPositionFactorX property value was positive.

The values of the CenterPositionFactorX and CenterPositionFactorY properties can exceed 1. The CenterPositionFactorX property values beyond 1 specify how far the scale’s center is shifted to the right of the parent object’s right border, beyond the visible area. The actual distance between the scale’s center and the parent object’s right border is calculated in the same manner as if the CenterPositionFactorX property value was within range between 0 and 1.

If the CenterPositionFactorX property is set to 0 or 1, the scale’s center is located on the parent object’s left or right border, respectively.

Note

The CenterPositionFactorX and CenterPositionFactorY properties determine the scale’s position within the parent object only if the CenterPositionType property is set to sptFactor.

See Also