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

TdxRangeControlCustomDateTimeHeaderClientProperties.AutoFormatHelper Property

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

#Declaration

Delphi
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