Class AxisLabelLayout
Represents a base of chart axis label layout.
Namespace: Syncfusion.UI.Xaml.Charts
Assembly: Syncfusion.SfChart.UWP.dll
Syntax
public abstract class AxisLabelLayout : Object
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<Windows.UI.Xaml.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 |
---|
Windows.UI.Xaml.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<Windows.UI.Xaml.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<Windows.Foundation.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<Windows.Foundation.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, Windows.Foundation.Rect>> |
Methods
Arrange(Size)
Method declaration for Arrange.
Declaration
public virtual void Arrange(Size finalSize)
Parameters
Type | Name | Description |
---|---|---|
Windows.Foundation.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 |
---|---|---|
Windows.Foundation.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<Windows.UI.Xaml.UIElement> | elements | The Elements |
Returns
Type | Description |
---|---|
AxisLabelLayout | Returns the created layout. |
InsertToRowOrColumn(Int32, Int32, Rect)
Insert the Windows.Foundation.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 |
Windows.Foundation.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 |
---|---|---|
Windows.Foundation.Rect | r1 | The First Rectangle |
Windows.Foundation.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 |
---|---|---|
Windows.Foundation.Size | availableSize | The Available Size |
Returns
Type | Description |
---|---|
Windows.Foundation.Size | Returns the size required for arranging the elements. |