Class ChartFrame

Class ChartFrame

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

Encapsulates the object that represents the frame object in a chart.

public class ChartFrame

Inheritance

objectChartFrame

Derived

ChartArea, ChartTextFrame, PlotArea

Inherited Members

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

Fields

m_AutoScaleFont

protected bool m_AutoScaleFont

Field Value

bool

m_BackgroundMode

protected BackgroundMode m_BackgroundMode

Field Value

BackgroundMode

m_IsAutoXPos

protected bool m_IsAutoXPos

Field Value

bool

m_IsAutoYPos

protected bool m_IsAutoYPos

Field Value

bool

m_IsOffsetPosBeSet

protected bool m_IsOffsetPosBeSet

Field Value

bool

m_fontIndex

protected int m_fontIndex

Field Value

int

m_isAutoSize

protected bool m_isAutoSize

Field Value

bool

Properties

Area

Gets the Aspose.Cells.Charts.ChartFrame.Area?text=area.

public virtual Area Area { get; }

Property Value

Area

AutoScaleFont

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

public virtual 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

Border

Gets the Aspose.Cells.Drawing.Line?text=border.

public virtual Line Border { get; }

Property Value

Line

DefaultHeight

Represents height of default position

public int DefaultHeight { get; }

Property Value

int

DefaultWidth

Represents width of default position

public int DefaultWidth { get; }

Property Value

int

DefaultX

Represents x of default position

public int DefaultX { get; }

Property Value

int

DefaultY

Represents y of default position

public int DefaultY { get; }

Property Value

int

Font

Gets a Aspose.Cells.Charts.ChartFrame.Font object of the specified ChartFrame object.

public virtual Font Font { get; }

Property Value

Font

Height

Gets or sets the height of frame in units of 1/4000 of the chart area.

public virtual int Height { get; set; }

Property Value

int

Remarks

How to convert units of 1/4000 to pixels? Height In Pixels = Y * Chart.ChartObject.Height / 4000;

IsAutomaticSize

Indicates whether the chart frame is automatic sized.

public virtual bool IsAutomaticSize { get; set; }

Property Value

bool

IsDefaultPosBeSet

Indicates whether default position(DefaultX, DefaultY, DefaultWidth and DefaultHeight) are set.

public bool IsDefaultPosBeSet { get; }

Property Value

bool

IsInnerMode

Indicates whether the size of the plot area size includes the tick marks, and the axis labels. False specifies that the size shall determine the size of the plot area, the tick marks, and the axis labels.

public bool IsInnerMode { get; set; }

Property Value

bool

Remarks

Only for Xlsx file.

Shadow

True if the frame has a shadow.

public bool Shadow { get; set; }

Property Value

bool

ShapeProperties

Gets the Aspose.Cells.Charts.ChartFrame.ShapeProperties object.

public ShapePropertyCollection ShapeProperties { get; }

Property Value

ShapePropertyCollection

TextOptions

Gets and sets the options of the text.

public virtual TextOptions TextOptions { get; }

Property Value

TextOptions

Width

Gets or sets the width of frame in units of 1/4000 of the chart area.

public virtual int Width { get; set; }

Property Value

int

Remarks

How to convert units of 1/4000 to pixels? Width In Pixels = Width * Chart.ChartObject.Height / 4000;

X

Gets or sets the x coordinate of the upper left corner in units of 1/4000 of the chart area.

public virtual int X { get; set; }

Property Value

int

Remarks

How to convert units of 1/4000 to pixels? X In Pixels = X * Chart.ChartObject.Width / 4000;

Y

Gets or sets the y coordinate of the upper left corner in units of 1/4000 of the chart area.

public virtual int Y { get; set; }

Property Value

int

Remarks

How to convert units of 1/4000 to pixels? Y In Pixels = Y * Chart.ChartObject.Height / 4000;

Methods

SetPositionAuto()

Set position of the frame to automatic

public virtual void SetPositionAuto()