Class ChartFrame

Class ChartFrame

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

封装表示图表中框架对象的对象。

public class ChartFrame

继承

objectChartFrame

派生

ChartArea, ChartTextFrame, PlotArea

继承成员

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

字段

m_AutoScaleFont

protected bool m_AutoScaleFont

字段值

bool

m_BackgroundMode

protected BackgroundMode m_BackgroundMode

字段值

BackgroundMode

m_IsAutoXPos

protected bool m_IsAutoXPos

字段值

bool

m_IsAutoYPos

protected bool m_IsAutoYPos

字段值

bool

m_IsOffsetPosBeSet

protected bool m_IsOffsetPosBeSet

字段值

bool

m_fontIndex

protected int m_fontIndex

字段值

int

m_isAutoSize

protected bool m_isAutoSize

字段值

bool

属性

Area

获取 Aspose.Cells.Charts.ChartFrame.Area?text=area。

public virtual Area Area { get; }

属性值

Area

AutoScaleFont

如果对象中的文本在对象大小变化时改变字体大小,则为 True。默认值为 True。

public virtual bool AutoScaleFont { get; set; }

属性值

bool

BackgroundMode

获取和设置背景的显示模式。

public BackgroundMode BackgroundMode { get; set; }

属性值

BackgroundMode

Border

获取 Aspose.Cells.Drawing.Line?text=border。

public virtual Line Border { get; }

属性值

Line

DefaultHeight

表示默认位置的高度。

public int DefaultHeight { get; }

属性值

int

DefaultWidth

表示默认位置的宽度。

public int DefaultWidth { get; }

属性值

int

DefaultX

表示默认位置的 x 坐标。

public int DefaultX { get; }

属性值

int

DefaultY

表示默认位置的 y 坐标。

public int DefaultY { get; }

属性值

int

Font

获取指定 ChartFrame 对象的 Aspose.Cells.Charts.ChartFrame.Font 对象。

public virtual Font Font { get; }

属性值

Font

Height

获取或设置框架的高度,单位为图表区域的 1/4000。

public virtual int Height { get; set; }

属性值

int

备注

如何将 1/4000 的单位转换为像素?
高度(像素) = Y * Chart.ChartObject.Height / 4000;

IsAutomaticSize

指示图表框架是否为自动大小。

public virtual bool IsAutomaticSize { get; set; }

属性值

bool

IsDefaultPosBeSet

指示默认位置(DefaultX、DefaultY、DefaultWidth 和 DefaultHeight)是否已设置。

public bool IsDefaultPosBeSet { get; }

属性值

bool

IsInnerMode

指示绘图区域的大小是否包括刻度标记和轴标签。
False 指定大小应确定绘图区域的大小、刻度标记和轴标签的大小。

public bool IsInnerMode { get; set; }

属性值

bool

备注

仅适用于 Xlsx 文件。

Shadow

如果框架具有阴影,则为 True。

public bool Shadow { get; set; }

属性值

bool

ShapeProperties

获取 Aspose.Cells.Charts.ChartFrame.ShapeProperties 对象。

public ShapePropertyCollection ShapeProperties { get; }

属性值

ShapePropertyCollection

TextOptions

获取和设置文本的选项。

public virtual TextOptions TextOptions { get; }

属性值

TextOptions

Width

获取或设置框架的宽度,单位为图表区域的 1/4000。

public virtual int Width { get; set; }

属性值

int

备注

如何将 1/4000 的单位转换为像素?
宽度(像素) = Width * Chart.ChartObject.Height / 4000;

X

获取或设置左上角的 x 坐标,单位为图表区域的 1/4000。

public virtual int X { get; set; }

属性值

int

备注

如何将 1/4000 的单位转换为像素?
X(像素) = X * Chart.ChartObject.Width / 4000;

Y

获取或设置左上角的 y 坐标,单位为图表区域的 1/4000。

public virtual int Y { get; set; }

属性值

int

备注

如何将 1/4000 的单位转换为像素?
Y(像素) = Y * Chart.ChartObject.Height / 4000;

方法

SetPositionAuto()

将框架的位置设置为自动。

public virtual void SetPositionAuto()
 中文