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

TdxRangeControlCustomNumericClientProperties.GetInterval(Double,Double) Method

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

#Declaration

Delphi
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