Class TickLabels

Class TickLabels

Namespace: Aspose.Cells.Charts
Assembly: Aspose.Cells.dll (25.2.0)

Represents the tick-mark labels associated with tick marks on a chart axis.

public class TickLabels

Inheritance

objectTickLabels

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Properties

AlignmentType

Gets and sets the text alignment for the tick labels on the axis.

public TickLabelAlignmentType AlignmentType { get; set; }

Property Value

TickLabelAlignmentType

AutoScaleFont

True if the text in the object changes font size when the object size changes. The default value is True.

public bool AutoScaleFont { get; set; }

Property Value

bool

BackgroundMode

Gets and sets the display mode of the background

public BackgroundMode BackgroundMode { get; set; }

Property Value

BackgroundMode

DirectionType

Gets and sets the direction of text.

public ChartTextDirectionType DirectionType { get; set; }

Property Value

ChartTextDirectionType

DisplayNumberFormat

Gets and sets the display number format of tick labels.

public string DisplayNumberFormat { get; }

Property Value

string

Font

Returns a Aspose.Cells.Charts.TickLabels.Font object that represents the font of the specified TickLabels object.

public Font Font { get; }

Property Value

Font

IsAutomaticRotation

Indicates whether the rotation angle is automatic

public bool IsAutomaticRotation { get; set; }

Property Value

bool

Number

Represents the format number for the TickLabels object.

public int Number { get; set; }

Property Value

int

NumberFormat

Represents the format string for the TickLabels object.

public string NumberFormat { get; set; }

Property Value

string

Remarks

The formatting string is same as a custom format string setting to a cell. For example, “$0”.

NumberFormatLinked

True if the number format is linked to the cells (so that the number format changes in the labels when it changes in the cells).

public bool NumberFormatLinked { get; set; }

Property Value

bool

Offset

Gets and sets the distance between the axis labels and the axis line.

public int Offset { get; set; }

Property Value

int

Remarks

The default distance is 100 percent, which represents the default spacing between the axis labels and the axis line. The value can be an integer percentage from 0 through 1000, relative to the axis label’s font size.

ReadingOrder

Represents text reading order.

public TextDirectionType ReadingOrder { get; set; }

Property Value

TextDirectionType

RotationAngle

Represents text rotation angle in clockwise.

public int RotationAngle { get; set; }

Property Value

int

Remarks


0: Not rotated.
255: Top to Bottom.
-90: Downward.
90: Upward.

TickLabelItems

Gets the display tick labels of the axis.

public TickLabelItem[] TickLabelItems { get; }

Property Value

TickLabelItem[]

Remarks

Only available after calling Aspose.Cells.Charts.Chart.Calculate method.