TdxCustomRangeControl.GetPositionFromValue(Variant) Method
Returns the client area position (in pixels) corresponding to the specified value on the control’s ruler.
Declaration
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