Class ChartCartesianAxisElement
This element renders the axis line and ticks.
Inheritance
Namespace: Syncfusion.Windows.Chart
Assembly: Syncfusion.Chart.Wpf.dll
Syntax
public class ChartCartesianAxisElement : FrameworkElement
Constructors
ChartCartesianAxisElement()
Declaration
public ChartCartesianAxisElement()
Fields
AxisProperty
Identifies the Axis dependency property.
Declaration
public static readonly DependencyProperty AxisProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
CapsProperty
Identifies the Caps dependency property.
Declaration
public static readonly DependencyProperty CapsProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
CapsSizeProperty
Identifies the CapsSize dependency property.
Declaration
public static readonly DependencyProperty CapsSizeProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
LabelsProperty
Identifies the Labels dependency property.
Declaration
public static readonly DependencyProperty LabelsProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
LineStrokeProperty
Identifies the LineStroke dependency property.
Declaration
public static readonly DependencyProperty LineStrokeProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
OrientationProperty
Identifies the Orientation dependency property.
Declaration
public static readonly DependencyProperty OrientationProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
TickSizeProperty
Identifies the TickSize dependency property.
Declaration
public static readonly DependencyProperty TickSizeProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Properties
Axis
Gets or sets the axis. This is a dependency property.
Declaration
public ChartAxis Axis { get; set; }
Property Value
Type | Description |
---|---|
ChartAxis | The axis value. |
Caps
Gets or sets the axis caps. This is a dependency property.
Declaration
public ChartAxisCap Caps { get; set; }
Property Value
Type | Description |
---|---|
ChartAxisCap | The axis caps. |
CapsSize
Gets or sets the size of the caps. This is a dependency property.
Declaration
public Size CapsSize { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Size | The size of the caps. |
Labels
Gets or sets the labels. This is a dependency property.
Declaration
public ChartAxisLabelsCollection Labels { get; set; }
Property Value
Type | Description |
---|---|
Syncfusion.Windows.Chart.ChartAxisLabelsCollection | The labels. |
LineStroke
Gets or sets the line stroke. This is a dependency property.
Declaration
public Pen LineStroke { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.Pen | The line stroke. |
Orientation
Gets or sets the orientation. This is a dependency property.
Declaration
public Orientation Orientation { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Controls.Orientation | The orientation. |
TickSize
Gets or sets the size of the tick. This is a dependency property.
Declaration
public double TickSize { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The size of the tick. |
Methods
DrawAxisLine(DrawingContext, Pen, Point, Point, ChartAxisCap, Size, Size)
Draws the axis line.
Declaration
protected static void DrawAxisLine(DrawingContext context, Pen pen, Point point1, Point point2, ChartAxisCap caps, Size startArrowOffset, Size endArrowOffset)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Media.DrawingContext | context | The context. |
System.Windows.Media.Pen | pen | The pen value. |
System.Windows.Point | point1 | The starting point. |
System.Windows.Point | point2 | The point2. |
ChartAxisCap | caps | The caps value. |
System.Windows.Size | startArrowOffset | The start arrow offset. |
System.Windows.Size | endArrowOffset | The end arrow offset. |
MeasureOverride(Size)
When overridden in a derived class, measures the size in layout required for child elements and determines a size for the System.Windows.FrameworkElement-derived class.
Declaration
protected override Size MeasureOverride(Size availableSize)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Size | availableSize | The available size that this element can give to child elements. Infinity can be specified as a value to indicate that the element will size to whatever content is available. |
Returns
Type | Description |
---|---|
System.Windows.Size | The size that this element determines it needs during layout, based on its calculations of child element sizes. |
OnRender(DrawingContext)
When overridden in a derived class, participates in rendering operations that are directed by the layout system. The rendering instructions for this element are not used directly when this method is invoked, and are instead preserved for later asynchronous use by layout and drawing.
Declaration
protected override void OnRender(DrawingContext drawingContext)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Media.DrawingContext | drawingContext | The drawing instructions for a specific element. This context is provided to the layout system. |