
## ChartArea class

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

## Properties

| Name | Type | Description |
| --- | --- | --- |
| [X](#x) | Number | Gets or gets the horizontal offset from its upper left corner column. |
| [Y](#y) | Number | Gets or gets the vertical offset from its upper left corner row. |
| [Height](#height) | Number | Gets or sets the vertical offset from its lower right corner row. |
| [Width](#width) | Number | Gets or sets the horizontal offset from its lower right corner column. |
| [XRatioToChart](#xratiotochart) | Number |  |
| [YRatioToChart](#yratiotochart) | Number |  |
| [HeightRatioToChart](#heightratiotochart) | Number |  |
| [WidthRatioToChart](#widthratiotochart) | Number |  |
| [Font](#font) | Font | Gets a Font object of the specified chartarea object. |
| [IsInnerMode](#isinnermode) | boolean | Indicates whether the size of the plot area size includes the tick marks, and the axis labels. False specifies that the  |
| [Chart](#chart) | Chart | Gets the chart to which this object belongs. |
| [Border](#border) | Line | Gets the Line . |
| [Area](#area) | Area | Gets the area . |
| [TextFont](#textfont) | Font | Gets a Font object of the specified ChartFrame object. NOTE: This member is now obsolete. Instead, please use ChartFrame |
| [TextOptions](#textoptions) | TextOptions | Gets and sets the options of the text. |
| [AutoScaleFont](#autoscalefont) | boolean | True if the text in the object changes font size when the object size changes. The default value is True. |
| [BackgroundMode](#backgroundmode) | Number | Gets and sets the display mode of the background The value of the property is BackgroundMode integer constant. |
| [Background](#background) | Number | Gets and sets the display mode of the background The value of the property is BackgroundMode integer constant. NOTE: Thi |
| [IsAutomaticSize](#isautomaticsize) | boolean | Indicates whether the chart frame is automatic sized. |
| [Shadow](#shadow) | boolean | True if the frame has a shadow. |
| [ShapeProperties](#shapeproperties) | ShapePropertyCollection | Gets the ShapeProperties object. |
| [IsDefaultPosBeSet](#isdefaultposbeset) | boolean | Indicates whether default position(DefaultX, DefaultY, DefaultWidth and DefaultHeight) are set. |
| [DefaultX](#defaultx) | Number | Represents x of default position |
| [DefaultY](#defaulty) | Number | Represents y of default position |
| [DefaultWidth](#defaultwidth) | Number | Represents width of default position |
| [DefaultHeight](#defaultheight) | Number | Represents height of default position |
| [DefaultXRatioToChart](#defaultxratiotochart) | Number |  |
| [DefaultYRatioToChart](#defaultyratiotochart) | Number |  |
| [DefaultWidthRatioToChart](#defaultwidthratiotochart) | Number |  |
| [DefaultHeightRatioToChart](#defaultheightratiotochart) | Number |  |
| [XPixel](#xpixel) | Number |  |
| [YPixel](#ypixel) | Number |  |
| [WidthPixel](#widthpixel) | Number | Represents width |
| [HeightPixel](#heightpixel) | Number | Represents height |

## Methods

| Name | Description |
| --- | --- |
| [setPositionAuto](#setpositionauto) | Set position of the frame to automatic |

### ChartArea.X property {#x}

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

**Type:** Number

### ChartArea.Y property {#y}

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

**Type:** Number

### ChartArea.Height property {#height}

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

**Type:** Number

### ChartArea.Width property {#width}

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

**Type:** Number

### ChartArea.XRatioToChart property {#xratiotochart}

**Type:** Number

### ChartArea.YRatioToChart property {#yratiotochart}

**Type:** Number

### ChartArea.HeightRatioToChart property {#heightratiotochart}

**Type:** Number

### ChartArea.WidthRatioToChart property {#widthratiotochart}

**Type:** Number

### ChartArea.Font property {#font}

Gets a Font object of the specified chartarea object.

**Type:** Font

### ChartArea.IsInnerMode property {#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. Only for Xlsx file.

**Type:** boolean

### ChartArea.Chart property {#chart}

Gets the chart to which this object belongs.

**Type:** Chart

### ChartArea.Border property {#border}

Gets the Line .

**Type:** Line

### ChartArea.Area property {#area}

Gets the area .

**Type:** Area

### ChartArea.TextFont property {#textfont}

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 {#textoptions}

Gets and sets the options of the text.

**Type:** TextOptions

### ChartArea.AutoScaleFont property {#autoscalefont}

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 {#backgroundmode}

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

**Type:** Number

### ChartArea.Background property {#background}

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 {#isautomaticsize}

Indicates whether the chart frame is automatic sized.

**Type:** boolean

### ChartArea.Shadow property {#shadow}

True if the frame has a shadow.

**Type:** boolean

### ChartArea.ShapeProperties property {#shapeproperties}

Gets the ShapeProperties object.

**Type:** ShapePropertyCollection

### ChartArea.IsDefaultPosBeSet property {#isdefaultposbeset}

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

**Type:** boolean

### ChartArea.DefaultX property {#defaultx}

Represents x of default position

**Type:** Number

### ChartArea.DefaultY property {#defaulty}

Represents y of default position

**Type:** Number

### ChartArea.DefaultWidth property {#defaultwidth}

Represents width of default position

**Type:** Number

### ChartArea.DefaultHeight property {#defaultheight}

Represents height of default position

**Type:** Number

### ChartArea.DefaultXRatioToChart property {#defaultxratiotochart}

**Type:** Number

### ChartArea.DefaultYRatioToChart property {#defaultyratiotochart}

**Type:** Number

### ChartArea.DefaultWidthRatioToChart property {#defaultwidthratiotochart}

**Type:** Number

### ChartArea.DefaultHeightRatioToChart property {#defaultheightratiotochart}

**Type:** Number

### ChartArea.XPixel property {#xpixel}

**Type:** Number

### ChartArea.YPixel property {#ypixel}

**Type:** Number

### ChartArea.WidthPixel property {#widthpixel}

Represents width

**Type:** Number

### ChartArea.HeightPixel property {#heightpixel}

Represents height

**Type:** Number

### setPositionAuto() {#setpositionauto}

Set position of the frame to automatic
