Class ChartFrame
Namespace: Aspose.Cells.Charts
Assembly: Aspose.Cells.dll (25.3.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
DefaultHeightRatioToChart
Represents height of default position in units of Fraction of the chart area.
public double DefaultHeightRatioToChart { get; }
Property Value
DefaultWidthRatioToChart
Represents width of default position in units of Fraction of the chart area.
public double DefaultWidthRatioToChart { get; }
Property Value
DefaultXRatioToChart
Represents x of default position in units of Fraction of the chart area.
public double DefaultXRatioToChart { get; }
Property Value
DefaultYRatioToChart
Represents y of default position in units of Fraction of the chart area.
public double DefaultYRatioToChart { get; }
Property Value
Font
Gets a Aspose.Cells.Charts.ChartFrame.Font object of the specified ChartFrame object.
public virtual Font Font { get; }
Property Value
HeightPixel
Gets or sets the height of frame in units of Pixel.
public virtual int HeightPixel { get; set; }
Property Value
HeightRatioToChart
Gets or sets the height of frame in units of ratio of the chart area.
public virtual double HeightRatioToChart { get; set; }
Property Value
Remarks
This is a fraction value, its valid range is between 0-1. How to convert units of ratio to pixels? HeightPixel = HeightRatioToChart * Chart.ChartObject.Height;
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
WidthPixel
Gets or sets the width of frame in units of Pixel.
public virtual int WidthPixel { get; set; }
Property Value
WidthRatioToChart
Gets or sets the width of frame in units of ratio of the chart area.
public virtual double WidthRatioToChart { get; set; }
Property Value
Remarks
This is a fraction value, its valid range is between 0-1. How to convert units of ratio to pixels? WidthPixel = WidthRatioToChart * Chart.ChartObject.Width;
XPixel
Gets or sets the x coordinate of the upper left corner in units of Pixel.
public virtual int XPixel { get; set; }
Property Value
XRatioToChart
Gets or sets the x coordinate of the upper left corner in units of ratio of the chart area.
public virtual double XRatioToChart { get; set; }
Property Value
Remarks
This is a fraction value, its valid range is between 0-1. How to convert units of ratio to pixels? XPixel = XRatioToChart * Chart.ChartObject.Width;
YPixel
Gets or sets the y coordinate of the upper left corner in units of Pixel.
public virtual int YPixel { get; set; }
Property Value
YRatioToChart
Gets or sets the y coordinate of the upper left corner in units of ratio of the chart area.
public virtual double YRatioToChart { get; set; }
Property Value
Remarks
This is a fraction value, its valid range is between 0-1. How to convert units of ratio to pixels? YPixel = YRatioToChart * Chart.ChartObject.Height;
Methods
SetPositionAuto()
Set position of the frame to automatic
public virtual void SetPositionAuto()