Skip to main content

TdxRangeControlCustomNumericClientProperties.GetInterval(Double,Double) Method

Obtains the actual data range from the two specified range control‘s viewport coordinates.

Declaration

function GetInterval(const AMin: Double; const AMax: Double): Variant; override;

Parameters

Name Type
AMin Double
AMax Double

Returns

Type
Variant

Remarks

Normally, this function supports the internal infrastructure and is not intended to be used directly from your code. The GetInterval function is called internally by the range control when an end-user selects a numeric range.

The range control’s viewport coordinates are within the range of 0 to 1, inclusive.

The AMin and AMax parameters are used to pass the viewport coordinates of the selected range’s beginning and end, as specified by an end-user. The GetInterval function returns the actual selected interval as the RangeValueType value, taking the selectable range’s current zoom factor into account.

Note

If you are implementing a custom numeric data range model, you may need to override the GetInterval function in the custom TdxRangeControlCustomNumericClientProperties class descendant.

See Also