Skip to main content

TdxRangeControlCustomDateTimeHeaderClientProperties.AutoFormatHelper Property

Specifies the class-reference to a helper class that provides the automatic scale formatting functionality.

Declaration

property AutoFormatHelper: TdxRangeControlDateTimeAutoFormatHelperClass read; write;

Property Value

Type
TdxRangeControlDateTimeAutoFormatHelperClass

Remarks

The scale header formatting dynamically changes in response to zooming the selectable range in or out, either by using the Zoom&Scroll bar or programmatically. You can use this property to change the automatic date/time formatting rules for predefined scales graduated in different measurement units.

To accomplish this goal, you need to:

  • Override the existing scale header automatic formatting functionality in a TdxRangeControlDateTimeAutoFormatHelper descendant;

  • Set a class-reference to the resulting descendant as the AutoFormatHelper property value.

This technique is also useful if you are implementing a custom Date/Time Header-based data range selection and visualization model for the range control.

To disable or enable the automatic scale header formatting functionality, use the AutoFormatScaleCaptions property.

The AutoFormatHelper property is initialized with a reference to the TdxRangeControlDateTimeAutoFormatHelper class.

See Also