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

TdxCustomRangeControl.GetPositionFromValue(Variant) Method

Returns the client area position (in pixels) corresponding to the specified value on the control’s ruler.

#Declaration

Delphi
function GetPositionFromValue(const AValue: Variant): Integer;

#Parameters

Name Type
AValue Variant

#Returns

Type
Integer

#Remarks

You can call this function to identify the position within the range control’s client area (in pixels, starting from the beginning of the viewport area) corresponding to a value (in measurement units used by the active/visible scale) passed as the AValue parameter. The GetPositionFromValue function is particularly useful if you need to position the custom data visualization within the range control client area.

See Also