menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class AxisLabelLayout - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class AxisLabelLayout

    Represents a base of chart axis label layout.

    Inheritance
    System.Object
    AxisLabelLayout
    HorizontalLabelLayout
    VerticalLabelLayout
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.UI.Xaml.Charts
    Assembly: Syncfusion.SfChart.WPF.dll
    Syntax
    public abstract class AxisLabelLayout

    Constructors

    AxisLabelLayout(ChartAxis, List<UIElement>)

    initializes a new instance of the ChartCartesianAxisLabelsPanel class.

    Declaration
    protected AxisLabelLayout(ChartAxis axis, List<UIElement> elements)
    Parameters
    Type Name Description
    ChartAxis axis

    The Axis

    System.Collections.Generic.List<System.Windows.UIElement> elements

    The Elements

    Fields

    AngleForAutoRotate

    Specifies auto rotation angle for label.

    Declaration
    protected double AngleForAutoRotate
    Field Value
    Type
    System.Double

    BorderPadding

    Specifies padding for label border.

    Declaration
    protected double BorderPadding
    Field Value
    Type
    System.Double

    Margin

    Specifies label margin.

    Declaration
    protected Thickness Margin
    Field Value
    Type
    System.Windows.Thickness

    Properties

    Axis

    Gets or sets the axis of the ChartCartesianAxisLabelsPanel

    Declaration
    protected ChartAxis Axis { get; set; }
    Property Value
    Type
    ChartAxis

    Children

    Gets or sets the ChartCartesianAxisLabelsPanel children.

    Declaration
    protected List<UIElement> Children { get; }
    Property Value
    Type
    System.Collections.Generic.List<System.Windows.UIElement>

    ComputedSizes

    Gets or sets the width and height of the element after rotating.

    Declaration
    protected List<Size> ComputedSizes { get; set; }
    Property Value
    Type
    System.Collections.Generic.List<System.Windows.Size>

    DesiredSizes

    Gets or sets the width and height of the element without rotating.

    Declaration
    protected List<Size> DesiredSizes { get; set; }
    Property Value
    Type
    System.Collections.Generic.List<System.Windows.Size>

    RectssByRowsAndCols

    Gets or sets the rects of rows and columns of labels.

    Declaration
    protected List<Dictionary<int, Rect>> RectssByRowsAndCols { get; set; }
    Property Value
    Type
    System.Collections.Generic.List<System.Collections.Generic.Dictionary<System.Int32, System.Windows.Rect>>

    Methods

    Arrange(Size)

    Method declaration for Arrange.

    Declaration
    public virtual void Arrange(Size finalSize)
    Parameters
    Type Name Description
    System.Windows.Size finalSize

    The Final Size

    CalcBounds(Double)

    Calulates the bounds

    Declaration
    protected virtual void CalcBounds(double size)
    Parameters
    Type Name Description
    System.Double size

    The Size

    CalculateActualPlotOffset(Size)

    Calculates the actual plotoffset.

    Declaration
    protected virtual void CalculateActualPlotOffset(Size availableSize)
    Parameters
    Type Name Description
    System.Windows.Size availableSize

    The Available Size

    CheckCartesianSeries()

    Checks for the side by side series.

    Declaration
    protected bool CheckCartesianSeries()
    Returns
    Type Description
    System.Boolean

    Returns true when any of registered series is side by side series

    CheckLabelPlacement(Boolean)

    Checks the label placement

    Declaration
    protected bool CheckLabelPlacement(bool isSidebySideSeries)
    Parameters
    Type Name Description
    System.Boolean isSidebySideSeries

    Is Side By Side

    Returns
    Type Description
    System.Boolean

    Returns true when the label placement is between ticks

    CreateAxisLayout(ChartAxis, List<UIElement>)

    Method used to create the axis layout.

    Declaration
    public static AxisLabelLayout CreateAxisLayout(ChartAxis chartAxis, List<UIElement> elements)
    Parameters
    Type Name Description
    ChartAxis chartAxis

    The Chart Axis

    System.Collections.Generic.List<System.Windows.UIElement> elements

    The Elements

    Returns
    Type Description
    AxisLabelLayout

    Returns the created layout.

    InsertToRowOrColumn(Int32, Int32, Rect)

    Insert the System.Windows.Rect at the given row column index.

    Declaration
    protected void InsertToRowOrColumn(int rowOrColIndex, int itemIndex, Rect rect)
    Parameters
    Type Name Description
    System.Int32 rowOrColIndex

    The Row Column Index

    System.Int32 itemIndex

    The Item Index

    System.Windows.Rect rect

    The Rect

    IntersectsWith(Rect, Rect, Int32, Int32)

    Checks for the intersection of the rectangles.

    Declaration
    protected bool IntersectsWith(Rect r1, Rect r2, int prevIndex, int currentIndex)
    Parameters
    Type Name Description
    System.Windows.Rect r1

    The First Rectangle

    System.Windows.Rect r2

    The Second Rectangle

    System.Int32 prevIndex

    The Previous Index

    System.Int32 currentIndex

    The Current Index

    Returns
    Type Description
    System.Boolean

    Returns a value indicating whether the rectanges are intersected.

    IsOpposed(ChartAxis, Boolean)

    Checks the actual opposed position of the labels.

    Declaration
    protected static bool IsOpposed(ChartAxis axis, bool isAxisOpposed)
    Parameters
    Type Name Description
    ChartAxis axis

    The Axis

    System.Boolean isAxisOpposed

    The Axis Opposed Indication

    Returns
    Type Description
    System.Boolean

    Returns the actual opposed position.

    LayoutElements()

    Layuouts the axis labels.

    Declaration
    protected virtual double LayoutElements()
    Returns
    Type Description
    System.Double

    Returns desired height

    Measure(Size)

    Method declaration for Measure.

    Declaration
    public virtual Size Measure(Size availableSize)
    Parameters
    Type Name Description
    System.Windows.Size availableSize

    The Available Size

    Returns
    Type Description
    System.Windows.Size

    Returns the size required for arranging the elements.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved