Skip to main content

TdxGaugeScaleOptionsCustomLayout Class

The base class for the scale layout settings.

Declaration

TdxGaugeScaleOptionsCustomLayout = class(
    TdxGaugeScaleOptionsPersistent
)

Remarks

This class implements the basic functionality required by both the rectangular and arc layout settings that include size and positioning parameters.

The TdxGaugeScaleOptionsCustomLayout class extends its ancestor class with the following properties, allowing you to:

  • Select between the absolute and relative scale positioning modes (the CenterPositionType property);

  • Set the absolute (in pixels) horizontal and vertical scale positions (the CenterPositionX and CenterPositionY properties, respectively);

  • Set the relative (as factors multiplied by the dimensions of the scale’s parent object) horizontal and vertical scale positions (the CenterPositionFactorX and CenterPositionFactorY properties, respectively);

  • Set the relative (as factors multiplied by the dimensions of the scale’s parent object) height and width of the scale (the HeightFactor and WidthFactor properties, respectively);

  • Set the absolute (in pixels) height and width of the scale (the Height and Width properties, respectively);

  • Switch between the custom and style-determined height-to-width ratio of the scale (the Stretch property).

The TdxGaugeScaleOptionsCustomLayout class is the direct ancestor of the TdxGaugeScaleOptionsRectangularLayout and TdxGaugeScaleOptionsArcLayout classes, implementing the rectangular and arc scale layout settings, respectively.

All layout settings classes for all types of scales must be inherited from the TdxGaugeScaleOptionsCustomLayout class.

You do not need to create instances of this class, use its descendants instead.

Inheritance

See Also