ChartArea

ChartArea class

Encapsulates the object that represents the chart area in the worksheet.

Properties

NameTypeDescription
XNumberGets or gets the horizontal offset from its upper left corner column.
YNumberGets or gets the vertical offset from its upper left corner row.
HeightNumberGets or sets the vertical offset from its lower right corner row.
WidthNumberGets or sets the horizontal offset from its lower right corner column.
XRatioToChartNumber
YRatioToChartNumber
HeightRatioToChartNumber
WidthRatioToChartNumber
FontFontGets a Font object of the specified chartarea object.
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.
AutoScaleFontbooleanTrue if the text in the object changes font size when the object size changes. The default value is True.
BackgroundModeNumberGets and sets the display mode of the background The value of the property is BackgroundMode integer constant.
BackgroundNumberGets 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.
ShadowbooleanTrue if the frame has a shadow.
ShapePropertiesShapePropertyCollectionGets the ShapeProperties object.
IsDefaultPosBeSetbooleanIndicates whether default position(DefaultX, DefaultY, DefaultWidth and DefaultHeight) are set.
DefaultXNumberRepresents x of default position
DefaultYNumberRepresents y of default position
DefaultWidthNumberRepresents width of default position
DefaultHeightNumberRepresents height of default position
DefaultXRatioToChartNumber
DefaultYRatioToChartNumber
DefaultWidthRatioToChartNumber
DefaultHeightRatioToChartNumber
XPixelNumber
YPixelNumber
WidthPixelNumberRepresents width
HeightPixelNumberRepresents height

Methods

NameDescription
setPositionAutoSet position of the frame to automatic

ChartArea.X property

Gets or gets the horizontal offset from its upper left corner column.

Type: Number

ChartArea.Y property

Gets or gets the vertical offset from its upper left corner row.

Type: Number

ChartArea.Height property

Gets or sets the vertical offset from its lower right corner row.

Type: Number

ChartArea.Width property

Gets or sets the horizontal offset from its lower right corner column.

Type: Number

ChartArea.XRatioToChart property

Type: Number

ChartArea.YRatioToChart property

Type: Number

ChartArea.HeightRatioToChart property

Type: Number

ChartArea.WidthRatioToChart property

Type: Number

ChartArea.Font property

Gets a Font object of the specified chartarea object.

Type: Font

ChartArea.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

ChartArea.Chart property

Gets the chart to which this object belongs.

Type: Chart

ChartArea.Border property

Gets the Line .

Type: Line

ChartArea.Area property

Gets the area .

Type: Area

ChartArea.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

ChartArea.TextOptions property

Gets and sets the options of the text.

Type: TextOptions

ChartArea.AutoScaleFont property

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

Type: boolean

ChartArea.BackgroundMode property

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

Type: Number

ChartArea.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: Number

ChartArea.IsAutomaticSize property

Indicates whether the chart frame is automatic sized.

Type: boolean

ChartArea.Shadow property

True if the frame has a shadow.

Type: boolean

ChartArea.ShapeProperties property

Gets the ShapeProperties object.

Type: ShapePropertyCollection

ChartArea.IsDefaultPosBeSet property

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

Type: boolean

ChartArea.DefaultX property

Represents x of default position

Type: Number

ChartArea.DefaultY property

Represents y of default position

Type: Number

ChartArea.DefaultWidth property

Represents width of default position

Type: Number

ChartArea.DefaultHeight property

Represents height of default position

Type: Number

ChartArea.DefaultXRatioToChart property

Type: Number

ChartArea.DefaultYRatioToChart property

Type: Number

ChartArea.DefaultWidthRatioToChart property

Type: Number

ChartArea.DefaultHeightRatioToChart property

Type: Number

ChartArea.XPixel property

Type: Number

ChartArea.YPixel property

Type: Number

ChartArea.WidthPixel property

Represents width

Type: Number

ChartArea.HeightPixel property

Represents height

Type: Number

setPositionAuto()

Set position of the frame to automatic