TdxRangeControlDateTimeClientProperties.Scale Property
Specifies the scale displayed by the range control‘s ruler provided by the date/time client.
#Declaration
property Scale: TdxRangeControlDateTimeScale read; write;
#Property Value
Type |
---|
Tdx |
#Remarks
This property specifies the measurement unit corresponding to the minimum date/time range that can be selected by using a range control integrated with the date/time client. To change the scale displayed on the range control’s ruler, you can assign one of the scales supported by the client to the Scale property:
Value | Scale’s Measurement Unit | Synchronized with the Property Value |
---|---|---|
Scales. |
rcdu |
Scales. |
Scales. |
rcdu |
Scales. |
Scales. |
rcdu |
Scales. |
Scales. |
rcdu |
Scales. |
Scales. |
rcdu |
Scales. |
Scales. |
rcdu |
Scales. |
Scales. |
rcdu |
Scales. |
The following code example sets the minimum selectable date/time range to one month:
var
ADateTimeProperties: TdxRangeControlDateTimeClientProperties;
//...
ADateTimeHeaderProperties := dxRangeControl1.ClientProperties as TdxRangeControlDateTimeClientProperties;
ADateTimeProperties.Scale := ADateTimeProperties.Scales.Hour;
Alternatively, you can set the corresponding synchronized property to True.
Note
To identify the minimum range that can be selected by using the range control integrated with the date/time client, use the Scale.Scale