PlotArea

PlotArea class

Encapsulates the object that represents the plot area in a chart.

Properties

NameTypeDescription
XintGets or gets the x coordinate of the upper left corner of plot-area bounding box in units of 1/4000 of the chart area. T
YintGets or gets the y coordinate of the upper top corner of plot-area bounding box in units of 1/4000 of the chart area. Th
HeightintGets or sets the height of plot-area bounding box in units of 1/4000 of the chart area. The plot-area bounding box inclu
WidthintGets or sets the width of plot-area bounding box in units of 1/4000 of the chart area. The plot-area bounding box includ
InnerXintGets or gets the x coordinate of the upper top corner of plot area in units of 1/4000 of the chart area. The plot-area b
InnerYintGets or gets the x coordinate of the upper top corner of plot area in units of 1/4000 of the chart area. The plot-area b
InnerHeightintGets or sets the height of plot area in units of 1/4000 of the chart area. The plot-area bounding box includes the plot
InnerWidthintGets or sets the width of plot area in units of 1/4000 of the chart area. The plot-area bounding box includes the plot a
XRatioToChartfloat
YRatioToChartfloat
HeightRatioToChartfloat
WidthRatioToChartfloat
InnerXRatioToChartfloat
InnerYRatioToChartfloat
InnerHeightRatioToChartfloat
InnerWidthRatioToChartfloat
IsAutomaticSizebooleanIndicates whether the plot area is automatic sized.
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
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
XPixelint
YPixelint
WidthPixelintRepresents width
HeightPixelintRepresents height

Methods

NameDescription
setPositionAutoSet position of the plot area to automatic

PlotArea.X property

Gets or gets the x coordinate of the upper left corner of plot-area bounding box in units of 1/4000 of the chart area. The plot-area bounding box includes the plot area, tick marks(tick labels), and a small border around the tick marks. If the value is not created by MS Excel, please call Chart.Calculate() method before calling this method. The X , Y , Width and Height of PlotArea represents the plot-area bounding box that includes the plot area, tick marks(tick labels), and a small border around the tick marks. If you want to get actual size of plot area, you should call InnerX , InnerY , InnerWidth and InnerHeight properties. For excel 2007 or latter, the default value is zero. you should call get the value after calling Chart.Calculate().

Type: int

PlotArea.Y property

Gets or gets the y coordinate of the upper top corner of plot-area bounding box in units of 1/4000 of the chart area. The plot-area bounding box includes the plot area, tick marks(tick labels), and a small border around the tick marks. If the value is not created by MS Excel, please call Chart.Calculate() method before calling this method. The X , Y , Width and Height of PlotArea represents the plot-area bounding box that includes the plot area, tick marks(tick labels), and a small border around the tick marks. If you want to get actual size of plot area, you should call InnerX , InnerY , InnerWidth and InnerHeight properties. For excel 2007 or latter, the default value is zero. you should call get the value after calling Chart.Calculate().

Type: int

PlotArea.Height property

Gets or sets the height of plot-area bounding box in units of 1/4000 of the chart area. The plot-area bounding box includes the plot area, tick marks(tick labels), and a small border around the tick marks. If the value is not created by MS Excel, please call Chart.Calculate() method before calling this method. The X , Y , Width and Height of PlotArea represents the plot-area bounding box that includes the plot area, tick marks(tick labels), and a small border around the tick marks. If you want to get actual size of plot area, you should call InnerX , InnerY , InnerWidth and InnerHeight properties. For excel 2007 or latter, the default value is zero. you should call get the value after calling Chart.Calculate().

Type: int

PlotArea.Width property

Gets or sets the width of plot-area bounding box in units of 1/4000 of the chart area. The plot-area bounding box includes the plot area, tick marks(tick labels), and a small border around the tick marks. If the value is not created by MS Excel, please call Chart.Calculate() method before calling this method. The X , Y , Width and Height of PlotArea represents the plot-area bounding box that includes the plot area, tick marks(tick labels), and a small border around the tick marks. If you want to get actual size of plot area, you should call InnerX , InnerY , InnerWidth and InnerHeight properties. For excel 2007 or latter, the default value is zero. you should call get the value after calling Chart.Calculate().

Type: int

PlotArea.InnerX property

Gets or gets the x coordinate of the upper top corner of plot area in units of 1/4000 of the chart area. The plot-area bounding box includes the plot area, tick marks(tick labels), and a small border around the tick marks. If the value is not created by MS Excel, please call Chart.Calculate() method before calling this method. The X , Y , Width and Height of PlotArea represents the plot-area bounding box that includes the plot area, tick marks(tick labels), and a small border around the tick marks. If you want to get actual size of plot area, you should call InnerX , InnerY , InnerWidth and InnerHeight properties. For excel 2007 or latter, the default value is zero. you should call get the value after calling Chart.Calculate().

Type: int

PlotArea.InnerY property

Gets or gets the x coordinate of the upper top corner of plot area in units of 1/4000 of the chart area. The plot-area bounding box includes the plot area, tick marks(tick labels), and a small border around the tick marks. If the value is not created by MS Excel, please call Chart.Calculate() method before calling this method. The X , Y , Width and Height of PlotArea represents the plot-area bounding box that includes the plot area, tick marks(tick labels), and a small border around the tick marks. If you want to get actual size of plot area, you should call InnerX , InnerY , InnerWidth and InnerHeight properties. For excel 2007 or latter, the default value is zero. you should call get the value after calling Chart.Calculate().

Type: int

PlotArea.InnerHeight property

Gets or sets the height of plot area in units of 1/4000 of the chart area. The plot-area bounding box includes the plot area, tick marks(tick labels), and a small border around the tick marks. If the value is not created by MS Excel, please call Chart.Calculate() method before calling this method. The X , Y , Width and Height of PlotArea represents the plot-area bounding box that includes the plot area, tick marks(tick labels), and a small border around the tick marks. If you want to get actual size of plot area, you should call InnerX , InnerY , InnerWidth and InnerHeight properties. For excel 2007 or latter, the default value is zero. you should call get the value after calling Chart.Calculate().

Type: int

PlotArea.InnerWidth property

Gets or sets the width of plot area in units of 1/4000 of the chart area. The plot-area bounding box includes the plot area, tick marks(tick labels), and a small border around the tick marks. If the value is not created by MS Excel, please call Chart.Calculate() method before calling this method. The X , Y , Width and Height of PlotArea represents the plot-area bounding box that includes the plot area, tick marks(tick labels), and a small border around the tick marks. If you want to get actual size of plot area, you should call InnerX , InnerY , InnerWidth and InnerHeight properties. For excel 2007 or latter, the default value is zero. you should call get the value after calling Chart.Calculate().

Type: int

PlotArea.XRatioToChart property

Type: float

PlotArea.YRatioToChart property

Type: float

PlotArea.HeightRatioToChart property

Type: float

PlotArea.WidthRatioToChart property

Type: float

PlotArea.InnerXRatioToChart property

Type: float

PlotArea.InnerYRatioToChart property

Type: float

PlotArea.InnerHeightRatioToChart property

Type: float

PlotArea.InnerWidthRatioToChart property

Type: float

PlotArea.IsAutomaticSize property

Indicates whether the plot area is automatic sized.

Type: boolean

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

PlotArea.Chart property

Gets the chart to which this object belongs.

Type: Chart

PlotArea.Border property

Gets the Line .

Type: Line

PlotArea.Area property

Gets the area .

Type: Area

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

PlotArea.TextOptions property

Gets and sets the options of the text.

Type: TextOptions

PlotArea.Font property

Gets a Font object of the specified ChartFrame object.

Type: Font

PlotArea.AutoScaleFont property

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

Type: boolean

PlotArea.BackgroundMode property

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

Type: int

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

PlotArea.Shadow property

True if the frame has a shadow.

Type: boolean

PlotArea.ShapeProperties property

Gets the ShapeProperties object.

Type: ShapePropertyCollection

PlotArea.IsDefaultPosBeSet property

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

Type: boolean

PlotArea.DefaultX property

Represents x of default position

Type: int

PlotArea.DefaultY property

Represents y of default position

Type: int

PlotArea.DefaultWidth property

Represents width of default position

Type: int

PlotArea.DefaultHeight property

Represents height of default position

Type: int

PlotArea.DefaultXRatioToChart property

Type: float

PlotArea.DefaultYRatioToChart property

Type: float

PlotArea.DefaultWidthRatioToChart property

Type: float

PlotArea.DefaultHeightRatioToChart property

Type: float

PlotArea.XPixel property

Type: int

PlotArea.YPixel property

Type: int

PlotArea.WidthPixel property

Represents width

Type: int

PlotArea.HeightPixel property

Represents height

Type: int

setPositionAuto()

Set position of the plot area to automatic