Skip to main content

TdxRangeControlDateTimeScales.GetScale(TdxRangeControlDateTimeScaleUnit) Method

Returns a predefined scale by the specified measurement unit.

Declaration

function GetScale(AScaleUnit: TdxRangeControlDateTimeScaleUnit): TdxRangeControlDateTimeScale;

Parameters

Name Type
AScaleUnit TdxRangeControlDateTimeScaleUnit

Returns

Type
TdxRangeControlDateTimeScale

Remarks

Call this function to obtain an instance of the predefined scale graduated in measurement units passed as the AScaleUnit parameter. The GetScale function returns the following scale set’s property values, depending on the specified measurement unit:

Measurement Unit Property Value
rcduMinute Minute
rcduHour Hour
rcduDay Day
rcduWeek Week
rcduMonth Month
rcduQuarter Quarter
rcduYear Year

If the scale set has no predefined scale graduated using the specified unit (i.e., rcduSecond), the GetScale function returns nil.

See Also