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

TdxRangeControlCustomClientProperties.GetNearestNormalizedAcceptableValue(Double) Method

Returns the nearest selectable value (as the corresponding range control‘s viewport coordinate) from the specified range control’s viewport coordinate.

#Declaration

Delphi
function GetNearestNormalizedAcceptableValue(const AValue: Double): Double; virtual;

#Parameters

Name Type
AValue Double

#Returns

Type
Double

#Remarks

Normally, this function supports the internal infrastructure and is not intended to be used directly from your code. The GetNearestNormalizedAcceptableValue function is called internally by the range control when an end-user selects a value either by dropping the dragged selection thumb or clicking within the control’s area. This function is called to ensure selection of a valid value for the current data range selection and visualization model.

The GetNearestNormalizedAcceptableValue function returns the value passed as the AValue parameter without any changes, which indicates that the base data range model does not set any specific rules for end-user selection in the range control. Specific data range models implemented by the TdxRangeControlCustomClientProperties class descendants may impose certain limitations on end-user selection by overriding this function.

See Also