Click or drag to resize

AxisXCoordToValue Method

LightningChart .NET Help
Convert X screen coordinate (in DIPs or PX) to value on X axis.

Namespace:  Arction.Wpf.ChartingMVVM.Axes
Assembly:  Arction.Wpf.ChartingMVVM.LightningChart (in Arction.Wpf.ChartingMVVM.LightningChart.dll) Version: 10.3.1
Syntax
public bool CoordToValue(
	int xCoord,
	out double xValue,
	bool rangeValidation,
	bool UseDIP = true
)

Parameters

xCoord
Type: SystemInt32
X screen coordinate
xValue
Type: SystemDouble
X value
rangeValidation
Type: SystemBoolean
Limits coordinate in visible graph range. Does not validate sweeping gap either.
UseDIP (Optional)
Type: SystemBoolean
Defines if the xCoord parameter is interpreted as DIP's or PX.

Return Value

Type: Boolean
True if the coordinate was successfully converted. Returns false if the coordinate range validation failed. graph area or it's over a sweeping gap.
Exceptions
ExceptionCondition
ExceptionThrows exception if x coordinate is not over graph area.
See Also