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
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
m_BackgroundMode
protected BackgroundMode m_BackgroundMode
Field Value
m_IsAutoXPos
protected bool m_IsAutoXPos
Field Value
m_IsAutoYPos
protected bool m_IsAutoYPos
Field Value
m_IsOffsetPosBeSet
protected bool m_IsOffsetPosBeSet
Field Value
m_fontIndex
protected int m_fontIndex
Field Value
m_isAutoSize
protected bool m_isAutoSize
Field Value
Properties
Area
Gets the Aspose.Cells.Charts.ChartFrame.Area?text=area.
public virtual Area Area { get; }
Property Value
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
BackgroundMode
Gets and sets the display mode of the background
public BackgroundMode BackgroundMode { get; set; }
Property Value
Border
Gets the Aspose.Cells.Drawing.Line?text=border.
public virtual Line Border { get; }
Property Value
DefaultHeight
Represents height of default position
public int DefaultHeight { get; }
Property Value
DefaultWidth
Represents width of default position
public int DefaultWidth { get; }
Property Value
DefaultX
Represents x of default position
public int DefaultX { get; }
Property Value
DefaultY
Represents y of default position
public int DefaultY { get; }
Property Value
Font
Gets a Aspose.Cells.Charts.ChartFrame.Font object of the specified ChartFrame object.
public virtual Font Font { get; }
Property Value
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
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
IsDefaultPosBeSet
Indicates whether default position(DefaultX, DefaultY, DefaultWidth and DefaultHeight) are set.
public bool IsDefaultPosBeSet { get; }
Property Value
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
Remarks
Only for Xlsx file.
Shadow
True if the frame has a shadow.
public bool Shadow { get; set; }
Property Value
ShapeProperties
Gets the Aspose.Cells.Charts.ChartFrame.ShapeProperties object.
public ShapePropertyCollection ShapeProperties { get; }
Property Value
TextOptions
Gets and sets the options of the text.
public virtual TextOptions TextOptions { get; }
Property Value
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
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
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
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()