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

TdxRangeControlDateTimeAutoFormatHelper.GetFormatCount(TdxRangeControlDateTimeScaleUnit) Method

Returns the number of formatting variants supported by a scale graduated using the specified measurement unit.

#Declaration

Delphi
class function GetFormatCount(AScaleUnit: TdxRangeControlDateTimeScaleUnit): Integer; virtual;

#Parameters

Name Type
AScaleUnit TdxRangeControlDateTimeScaleUnit

#Returns

Type
Integer

#Remarks

Normally, this function supports the internal infrastructure and is not intended to be used directly from your code.

Different scales provided by the Date/Time Header and Scheduler data range selection and visualization models support a different number of date/time formatting variants displayed by the range control ruler. All visible scales automatically switch between available formatting variants depending on their current header sizes. For instance, the scale graduated in months, is capable of switching between three date/time value display modes in response to zooming the selectable range in or out either by using the Zoom&Scroll bar or programmatically.

Call the GetFormatCount class function to identify the number of date/time display modes for a scale graduated using the measurement unit passed as the AScaleUnit parameter.

See Also