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
Syntaxpublic bool CoordToValue(
int xCoord,
out double xValue,
bool rangeValidation,
bool UseDIP = true
)
Public Function CoordToValue (
xCoord As Integer,
<OutAttribute> ByRef xValue As Double,
rangeValidation As Boolean,
Optional UseDIP As Boolean = true
) As Boolean
public:
bool CoordToValue(
int xCoord,
[OutAttribute] 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:
BooleanTrue if the coordinate was successfully converted. Returns false if the coordinate range validation failed.
graph area or it's over a sweeping gap.
Exceptions| Exception | Condition |
|---|
| Exception | Throws exception if x coordinate is not over graph area. |
See Also