ChartArea
ChartArea class
Encapsulates the object that represents the chart area in the worksheet.
Properties
| Name | Type | Description |
|---|---|---|
| X | int | Gets or gets the horizontal offset from its upper left corner column. |
| Y | int | Gets or gets the vertical offset from its upper left corner row. |
| Height | int | Gets or sets the vertical offset from its lower right corner row. |
| Width | int | Gets or sets the horizontal offset from its lower right corner column. |
| XRatioToChart | float | |
| YRatioToChart | float | |
| HeightRatioToChart | float | |
| WidthRatioToChart | float | |
| Font | Font | Gets a Font object of the specified chartarea object. |
| 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 | Gets the chart to which this object belongs. |
| Border | Line | Gets the Line . |
| Area | Area | Gets the area . |
| TextFont | Font | Gets a Font object of the specified ChartFrame object. NOTE: This member is now obsolete. Instead, please use ChartFrame |
| TextOptions | TextOptions | Gets and sets the options of the text. |
| AutoScaleFont | boolean | True if the text in the object changes font size when the object size changes. The default value is True. |
| BackgroundMode | int | Gets and sets the display mode of the background The value of the property is BackgroundMode integer constant. |
| Background | int | Gets and sets the display mode of the background The value of the property is BackgroundMode integer constant. NOTE: Thi |
| IsAutomaticSize | boolean | Indicates whether the chart frame is automatic sized. |
| Shadow | boolean | True if the frame has a shadow. |
| ShapeProperties | ShapePropertyCollection | Gets the ShapeProperties object. |
| IsDefaultPosBeSet | boolean | Indicates whether default position(DefaultX, DefaultY, DefaultWidth and DefaultHeight) are set. |
| DefaultX | int | Represents x of default position |
| DefaultY | int | Represents y of default position |
| DefaultWidth | int | Represents width of default position |
| DefaultHeight | int | Represents height of default position |
| DefaultXRatioToChart | float | |
| DefaultYRatioToChart | float | |
| DefaultWidthRatioToChart | float | |
| DefaultHeightRatioToChart | float | |
| XPixel | int | |
| YPixel | int | |
| WidthPixel | int | Represents width |
| HeightPixel | int | Represents height |
Methods
| Name | Description |
|---|---|
| setPositionAuto | Set position of the frame to automatic |
ChartArea.X property
Gets or gets the horizontal offset from its upper left corner column.
Type: int
ChartArea.Y property
Gets or gets the vertical offset from its upper left corner row.
Type: int
ChartArea.Height property
Gets or sets the vertical offset from its lower right corner row.
Type: int
ChartArea.Width property
Gets or sets the horizontal offset from its lower right corner column.
Type: int
ChartArea.XRatioToChart property
Type: float
ChartArea.YRatioToChart property
Type: float
ChartArea.HeightRatioToChart property
Type: float
ChartArea.WidthRatioToChart property
Type: float
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: int
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: int
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: int
ChartArea.DefaultY property
Represents y of default position
Type: int
ChartArea.DefaultWidth property
Represents width of default position
Type: int
ChartArea.DefaultHeight property
Represents height of default position
Type: int
ChartArea.DefaultXRatioToChart property
Type: float
ChartArea.DefaultYRatioToChart property
Type: float
ChartArea.DefaultWidthRatioToChart property
Type: float
ChartArea.DefaultHeightRatioToChart property
Type: float
ChartArea.XPixel property
Type: int
ChartArea.YPixel property
Type: int
ChartArea.WidthPixel property
Represents width
Type: int
ChartArea.HeightPixel property
Represents height
Type: int
setPositionAuto()
Set position of the frame to automatic