Back to Devexpress

AxisX2D Class

wpf-devexpress-dot-xpf-dot-charts-dot-axisx2d.md

latest4.9 KB
Original Source

AxisX2D Class

Represents the X-axis of a XYDiagram2D class.

Namespace : DevExpress.Xpf.Charts

Assembly : DevExpress.Xpf.Charts.v25.2.dll

NuGet Package : DevExpress.Wpf.Charts

Declaration

csharp
public class AxisX2D :
    Axis2D
vb
Public Class AxisX2D
    Inherits Axis2D

The following members return AxisX2D objects:

Remarks

An instance of the AxisX2D class can be accessed via the XYDiagram2D.AxisX property. To learn more on the functionality provided by the AxisX2D class, see the descriptions of its Axis and Axis2D base classes.

Example

The following example demonstrates how to change the AxisRange.SideMarginsEnabled property value.

View Example

xaml
<dxc:XYDiagram2D.AxisX>
    <dxc:AxisX2D Range="SideMarginsEnabled=False" />
</dxc:XYDiagram2D.AxisX>
xaml
<dxc:XYDiagram2D.AxisX>
     <dxc:AxisX2D >
         <dxc:AxisX2D.Range>
             <dxc:AxisRange SideMarginsEnabled="True" />
         </dxc:AxisX2D.Range>
     </dxc:AxisX2D>
 </dxc:XYDiagram2D.AxisX>

The following code snippets (auto-collected from DevExpress Examples) contain references to the AxisX2D class.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

wpf-bind-a-range-control-to-a-chart-control/CS/GoldPrices/MainWindow.xaml#L40

xml
<dxc:XYDiagram2D.AxisX>
    <dxc:AxisX2D x:Name="axisX">
        <dxc:AxisX2D.DateTimeScaleOptions>

wpf-charts-custom-draw-crosshair-cursor/CS/CrosshairCustomDraw/MainWindow.xaml#L18

xml
<dxc:XYDiagram2D.AxisX>
    <dxc:AxisX2D>
        <dxc:AxisX2D.CrosshairAxisLabelOptions>

wpf-charts-create-real-time-chart/CS/RealtimeChartMVVM/MainWindow.xaml#L31

xml
<dxc:XYDiagram2D.AxisX>
    <dxc:AxisX2D>
        <dxc:AxisX2D.DateTimeScaleOptions>

Inheritance

Show 14 items

Object DispatcherObject DependencyObject Visual UIElement FrameworkElement Control ChartElementBase ChartElement AxisBase Axis Axis2D AxisX2D SecondaryAxisX2D

See Also

AxisX2D Members

DevExpress.Xpf.Charts Namespace