Skip to main content

TdxRangeControlDateTimeAutoFormatHelper.GetFormatCount(TdxRangeControlDateTimeScaleUnit) Method

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

Declaration

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