Class ChartAxis
Represents the chart axis common properties and base of Horizontal and Radial Axis.
Namespace: Syncfusion.UI.Xaml.SmithChart
Assembly: Syncfusion.SfSmithChart.WPF.dll
Syntax
public class ChartAxis : Control
Constructors
ChartAxis()
Initializes a new instance of the ChartAxis class.
Declaration
public ChartAxis()
Fields
AxisLineStyleProperty
The DependencyProperty for AxisLineStyle property.
Declaration
public static readonly DependencyProperty AxisLineStyleProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
LabelIntersectActionProperty
The DependencyProperty for LabelIntersectAction property.
Declaration
public static readonly DependencyProperty LabelIntersectActionProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
LabelPlacementProperty
The DependencyProperty for LabelPlacement property.
Declaration
public static readonly DependencyProperty LabelPlacementProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
MajorGridlineStyleProperty
The DependencyProperty for MajorGridlineStyle property.
Declaration
public static readonly DependencyProperty MajorGridlineStyleProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
MinorGridlinesCountProperty
The DependencyProperty for MinorGridlinesCount property.
Declaration
public static readonly DependencyProperty MinorGridlinesCountProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
MinorGridlineStyleProperty
The DependencyProperty for MinorGridlineStyle property.
Declaration
public static readonly DependencyProperty MinorGridlineStyleProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
ShowAxisLineProperty
The DependencyProperty for ShowAxisLine property.
Declaration
public static readonly DependencyProperty ShowAxisLineProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
ShowMajorGridlinesProperty
The DependencyProperty for ShowMajorGridlines property.
Declaration
public static readonly DependencyProperty ShowMajorGridlinesProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
ShowMinorGridlinesProperty
The DependencyProperty for ShowMinorGridlines property.
Declaration
public static readonly DependencyProperty ShowMinorGridlinesProperty
Field Value
| Type |
|---|
| System.Windows.DependencyProperty |
Properties
AxisLineStyle
Gets or sets the axis line style for the axis
Declaration
public Style AxisLineStyle { get; set; }
Property Value
| Type |
|---|
| System.Windows.Style |
LabelIntersectAction
Gets or sets the style for the axis label
Declaration
public LabelIntersectActions LabelIntersectAction { get; set; }
Property Value
| Type |
|---|
| LabelIntersectActions |
LabelPlacement
Gets or sets the style for the axis label
Declaration
public LabelPlacement LabelPlacement { get; set; }
Property Value
| Type |
|---|
| LabelPlacement |
MajorGridlineStyle
Gets or sets the major gridlines style for the axis
Declaration
public Style MajorGridlineStyle { get; set; }
Property Value
| Type |
|---|
| System.Windows.Style |
MinorGridlinesCount
Gets or sets the maximum minor grid lines render per 100 pixels
Declaration
public int MinorGridlinesCount { get; set; }
Property Value
| Type |
|---|
| System.Int32 |
MinorGridlineStyle
Gets or sets the minor gridlines style for the axis
Declaration
public Style MinorGridlineStyle { get; set; }
Property Value
| Type |
|---|
| System.Windows.Style |
ShowAxisLine
Gets or sets a value indicating whether the axis line is visible.
Declaration
public bool ShowAxisLine { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
ShowMajorGridlines
Gets or sets a value indicating whether the major grid lines are visible.
Declaration
public bool ShowMajorGridlines { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
ShowMinorGridlines
Gets or sets a value indicating whether the minor grid lines are visible.
Declaration
public bool ShowMinorGridlines { get; set; }
Property Value
| Type |
|---|
| System.Boolean |
Methods
OnApplyTemplate()
Applies the template for the chart axis.
Declaration
public override void OnApplyTemplate()
OnAxisLabelCreated(ChartAxisLabelEventArgs)
Axis Label created event, to customize the axis label.
Declaration
protected void OnAxisLabelCreated(ChartAxisLabelEventArgs args)
Parameters
| Type | Name | Description |
|---|---|---|
| ChartAxisLabelEventArgs | args | Axis label event arguments |
Events
LabelCreated
Customizing the ChartAxis label text and styles.
Declaration
public event EventHandler LabelCreated
Event Type
| Type |
|---|
| System.EventHandler |