Upravit

Sdílet prostřednictvím


PlotArea Interface

Definition

Represents the plot area of a chart.

public interface class PlotArea
[System.Runtime.InteropServices.Guid("56AFD330-440C-4F4C-A39C-ED306D084D5F")]
public interface PlotArea
type PlotArea = interface
Public Interface PlotArea
Attributes

Examples

Use the PlotArea property to return a PlotArea object. The following example places a dashed border around the chart area of the first chart in the active document, and then places a dotted border around the plot area.

Remarks

This is the area where your chart data is plotted. The plot area on a 2-D chart contains the data markers, gridlines, data labels, trendlines, and optional chart items placed in the chart area. The plot area on a 3-D chart contains all the above items plus the walls, floor, axes, axis titles, and tick-mark labels in the chart.

The plot area is surrounded by the chart area. The chart area on a 2-D chart contains the axes, the chart title, the axis titles, and the legend. The chart area on a 3-D chart contains the chart title and the legend. For information about formatting the chart area, see the ChartArea object.

Properties

Application

When used without an object qualifier, this property returns an _Application object that represents the Microsoft Word application. When used with an object qualifier, this property returns an Application object that represents the creator of the specified object (you can use this property with an OLE Automation object to return the application of that object). Read-only.

Border

Returns a Border object that represents the border of the object.

Creator

Returns a 32-bit integer that indicates the application in which the specified object was created. Read-only Integer.

Fill

Returns a FillFormat object for a specified shape or a ChartFillFormat object for a specified chart that contains fill formatting properties for the shape or chart.

Format

Returns the line, fill, and effect formatting for the object.

Read-only ChartFormat.

Height

Returns or sets a Double value that represents the height, in points, of the object.

InsideHeight

Returns or sets the inside height of the plot area, in points. Read/write Double.

InsideLeft

Returns or sets the distance from the chart edge to the inside left edge of the plot area, in points. Read/write Double.

InsideTop

Returns or sets the distance from the chart edge to the inside top edge of the plot area, in points. Read/write Double.

InsideWidth

Returns or sets the inside width of the plot area, in points. Read/write Double.

Interior

Returns a Font object that represents the font of the specified object.

Left

Returns or sets a Double value that represents the distance, in points, from the left edge of the object to the left edge of the chart area.

Name

Returns a String value that represents the name of the object.

Parent

Returns the parent for the specified object. Read-only Object.

Position

Returns or sets the position of the plot area on the chart. Read/write XlChartElementPosition.

Top

Returns or sets a Double value that represents the distance, in points, from the top edge of the object to the top of row 1 (on a worksheet) or the top of the chart area (on a chart).

Width

Returns or sets a Double value that represents the width, in points, of the object.

Methods

ClearFormats()

Clears the formatting of the object.

Select()

Selects the object.

Applies to