ChartFrame

ChartFrame class

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

Properties

NameTypeDescription
IsInnerModebooleanIndicates whether the size of the plot area size includes the tick marks, and the axis labels. False specifies that the
ChartChartGets the chart to which this object belongs.
BorderLineGets the Line .
AreaAreaGets the Area .
TextFontFontGets a Font object of the specified ChartFrame object. NOTE: This member is now obsolete. Instead, please use ChartFrame
TextOptionsTextOptionsGets and sets the options of the text.
FontFontGets a Font object of the specified ChartFrame object.
AutoScaleFontbooleanTrue if the text in the object changes font size when the object size changes. The default value is True.
BackgroundModeintGets and sets the display mode of the background The value of the property is BackgroundMode integer constant.
BackgroundintGets and sets the display mode of the background The value of the property is BackgroundMode integer constant. NOTE: Thi
IsAutomaticSizebooleanIndicates whether the chart frame is automatic sized.
XintGets or sets the x coordinate of the upper left corner in units of 1/4000 of the chart area. How to convert units of 1/4
YintGets or sets the y coordinate of the upper left corner in units of 1/4000 of the chart area. How to convert units of 1/4
HeightintGets or sets the height of frame in units of 1/4000 of the chart area. How to convert units of 1/4000 to pixels? Height
WidthintGets or sets the width of frame in units of 1/4000 of the chart area. How to convert units of 1/4000 to pixels? Width In
ShadowbooleanTrue if the frame has a shadow.
ShapePropertiesShapePropertyCollectionGets the ShapeProperties object.
IsDefaultPosBeSetbooleanIndicates whether default position(DefaultX, DefaultY, DefaultWidth and DefaultHeight) are set.
DefaultXintRepresents x of default position
DefaultYintRepresents y of default position
DefaultWidthintRepresents width of default position
DefaultHeightintRepresents height of default position
DefaultXRatioToChartfloat
DefaultYRatioToChartfloat
DefaultWidthRatioToChartfloat
DefaultHeightRatioToChartfloat
XRatioToChartfloat
YRatioToChartfloat
WidthRatioToChartfloat
HeightRatioToChartfloat
XPixelint
YPixelint
WidthPixelintRepresents width
HeightPixelintRepresents height

Methods

NameDescription
setPositionAutoSet position of the frame to automatic

ChartFrame.IsInnerMode property

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. Only for Xlsx file.

Type: boolean

ChartFrame.Chart property

Gets the chart to which this object belongs.

Type: Chart

ChartFrame.Border property

Gets the Line .

Type: Line

ChartFrame.Area property

Gets the Area .

Type: Area

ChartFrame.TextFont property

Gets a Font object of the specified ChartFrame object. NOTE: This member is now obsolete. Instead, please use ChartFrame.Font property. This property will be removed 12 months later since JANUARY 2012. Aspose apologizes for any inconvenience you may have experienced.

Type: Font

ChartFrame.TextOptions property

Gets and sets the options of the text.

Type: TextOptions

ChartFrame.Font property

Gets a Font object of the specified ChartFrame object.

Type: Font

ChartFrame.AutoScaleFont property

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

Type: boolean

ChartFrame.BackgroundMode property

Gets and sets the display mode of the background The value of the property is BackgroundMode integer constant.

Type: int

ChartFrame.Background property

Gets and sets the display mode of the background The value of the property is BackgroundMode integer constant. NOTE: This member is now obsolete. Instead, please use ChartFrame.BackgroundMode property. This property will be removed 12 months later since JANUARY 2012. Aspose apologizes for any inconvenience you may have experienced.

Type: int

ChartFrame.IsAutomaticSize property

Indicates whether the chart frame is automatic sized.

Type: boolean

ChartFrame.X property

Gets or sets the x coordinate of the upper left corner in units of 1/4000 of the chart area. How to convert units of 1/4000 to pixels? X In Pixels = X * Chart.ChartObject.Width / 4000;

Type: int

ChartFrame.Y property

Gets or sets the y coordinate of the upper left corner in units of 1/4000 of the chart area. How to convert units of 1/4000 to pixels? Y In Pixels = Y * Chart.ChartObject.Height / 4000;

Type: int

ChartFrame.Height property

Gets or sets the height of frame in units of 1/4000 of the chart area. How to convert units of 1/4000 to pixels? Height In Pixels = Y * Chart.ChartObject.Height / 4000;

Type: int

ChartFrame.Width property

Gets or sets the width of frame in units of 1/4000 of the chart area. How to convert units of 1/4000 to pixels? Width In Pixels = Width * Chart.ChartObject.Height / 4000;

Type: int

ChartFrame.Shadow property

True if the frame has a shadow.

Type: boolean

ChartFrame.ShapeProperties property

Gets the ShapeProperties object.

Type: ShapePropertyCollection

ChartFrame.IsDefaultPosBeSet property

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

Type: boolean

ChartFrame.DefaultX property

Represents x of default position

Type: int

ChartFrame.DefaultY property

Represents y of default position

Type: int

ChartFrame.DefaultWidth property

Represents width of default position

Type: int

ChartFrame.DefaultHeight property

Represents height of default position

Type: int

ChartFrame.DefaultXRatioToChart property

Type: float

ChartFrame.DefaultYRatioToChart property

Type: float

ChartFrame.DefaultWidthRatioToChart property

Type: float

ChartFrame.DefaultHeightRatioToChart property

Type: float

ChartFrame.XRatioToChart property

Type: float

ChartFrame.YRatioToChart property

Type: float

ChartFrame.WidthRatioToChart property

Type: float

ChartFrame.HeightRatioToChart property

Type: float

ChartFrame.XPixel property

Type: int

ChartFrame.YPixel property

Type: int

ChartFrame.WidthPixel property

Represents width

Type: int

ChartFrame.HeightPixel property

Represents height

Type: int

setPositionAuto()

Set position of the frame to automatic