API Reference
ChartXProjection
A detached linear X projection captured from a prepared Line or StepLine chart.
Inheritance
- Object
- ChartXProjection
Remarks
Bounds include resolved authored limits and automatic full-chart marker padding. A requested viewport retains those full bounds while using its exact window for mapping and clipping. This snapshot does not retain the chart, its axes, or formatter callbacks.
Usage
Explore 1 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 1
- Property PreparedVisual.XProjection
Methods
public ChartXViewport? ConstrainViewport(Double firstLogicalX, Double secondLogicalX) #ChartXViewport?Converts a logical gesture into an increasing X window contained in the captured full domain.
Parameters
- firstLogicalX System.Double
- The first logical X position, including positions outside the plot.
- secondLogicalX System.Double
- The second logical X position, including positions outside the plot.
Returns
The confined window, or null when the requested span covers the full domain and preparation should reset.
Exceptions
ArgumentOutOfRangeExceptionโ A position or mapped bound is not finite, or the requested span is empty or cannot be represented at the confined bounds.
public Double Project(Double sourceX) #DoubleMaps a finite source X coordinate into logical scene units.
Parameters
- sourceX System.Double
- A source coordinate, including coordinates outside the current window.
Returns
The mapped coordinate; values outside the window extrapolate beyond the plot.
Exceptions
ArgumentOutOfRangeExceptionโ The input or extrapolated result is not finite.
public Double Unproject(Double logicalX) #DoubleMaps a finite logical X coordinate back into source coordinates.
Parameters
- logicalX System.Double
- A logical coordinate, including coordinates outside the plot.
Returns
The source coordinate; values outside the plot extrapolate beyond the current window.
Exceptions
ArgumentOutOfRangeExceptionโ The input or extrapolated result is not finite.
Inherited Methods
public virtual Boolean Equals(Object? obj) #BooleanParameters
- obj Object?
Properties
public Double FullMinimum { get; } #Gets the lower resolved X bound before applying a viewport.
public Double FullMaximum { get; } #Gets the upper resolved X bound before applying a viewport.
public Double Minimum { get; } #Gets the lower X bound used by this prepared scene.
public Double Maximum { get; } #Gets the upper X bound used by this prepared scene.
public ChartRect PlotBounds { get; } #Gets the final plot rectangle in logical scene units.
public Boolean Reversed { get; } #Gets whether increasing source X runs from right to left.