TdxGaugeScaleOptionsCustomLayout.CenterPositionFactorY Property
Specifies the relative vertical position of the scale‘s center within the parent object.
Declaration
property CenterPositionFactorY: 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 top border and the scale’s center is the result of multiplying the CenterPositionFactorY property value by the parent object’s height.
Negative values of the CenterPositionFactorX and CenterPositionFactorY properties are valid as well. The negative value of the CenterPositionFactorY property specifies how far the scale’s center is shifted up of the parent object’s top border, beyond the visible area. The actual distance between the scale’s center and the parent object’s top border is calculated in the same manner as if the CenterPositionFactorY property value was positive.
The values of the CenterPositionFactorX and CenterPositionFactorY properties can exceed 1. The CenterPositionFactorY property values beyond 1 specify how far the scale’s center is shifted down from the parent object’s bottom border, beyond the visible area. The actual distance between the scale’s center and the parent object’s bottom border is calculated in the same manner as if the CenterPositionFactorY property value was within range between 0 and 1.
If the CenterPositionFactorY property is set to 0 or 1, the scale’s center is located on the parent object’s top or bottom 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.