Share via


Chart Members

Include Protected Members
Include Inherited Members

Represents a chart in a document.

The Chart type exposes the following members.

Methods

  Name Description
Public method ApplyChartTemplate Applies a standard or custom chart type to a chart.
Public method ApplyCustomType Applies a standard or custom chart type to a chart.
Public method ApplyDataLabels Applies data labels to all the series in a chart.
Public method ApplyLayout Applies the layouts shown in the ribbon.
Public method AreaGroups On a 2-D chart, returns an object that represents either a single area chart group (a ChartGroup object) or a collection of the area chart groups (a ChartGroups collection).
Public method AutoFormat This API supports the Visual Studio Tools for Office infrastructure and is not intended to be used directly from your code.
Public method Axes Gets an object that either represents a single axis or a collection of axes on the chart.
Public method BarGroups On a 2-D chart, returns an object that represents either a single bar chart group (a ChartGroup object) or a collection of the bar chart groups (a ChartGroups collection).
Public method ChartWizard Modifies the properties of the given chart. You can use this method to quickly format a chart without setting all the individual properties. This method is non-interactive, and it changes only the specified properties.
Public method ClearToMatchStyle Clears the chart elements formatting to automatic.
Public method ColumnGroups On a 2-D chart, returns an object that represents either a single column chart group (a ChartGroup object) or a collection of the column chart groups (a ChartGroups collection).
Public method Copy Not supported for this object.
Public method CopyPicture Copies the selected object to the Clipboard as a picture.
Public method Delete Deletes the object.
Public method DoughnutGroups On a 2-D chart, returns an object that represents either a single doughnut chart group (a ChartGroup object) or a collection of the doughnut chart groups (a ChartGroups collection).
Public method Export Exports the chart in a graphic format. This method returns a Boolean value indicating whether the export was successful.
Public method GetChartElement Returns information about the chart element at specified X and Y coordinates. This method is unusual in that you specify values for only the first two arguments. Microsoft Word fills in the other arguments, and your code should examine those values when the method returns.
Public method LineGroups On a 2-D chart, returns an object that represents either a single line chart group (a ChartGroup object) or a collection of the line chart groups (a ChartGroups collection).
Public method Paste Pastes chart data from the Clipboard into the specified chart.
Public method PieGroups On a 2-D chart, returns an object that represents either a single pie chart group (a ChartGroup object) or a collection of the pie chart groups (a ChartGroups collection).
Public method RadarGroups On a 2-D chart, returns an object that represents either a single radar chart group (a ChartGroup object) or a collection of the radar chart groups (a ChartGroups collection).
Public method Refresh Causes the specified chart to be redrawn immediately.
Public method SaveChartTemplate Saves a custom chart template to the list of available chart templates.
Public method Select Selects the object.
Public method SeriesCollection Returns an Object that represents all the series in the chart.
Public method SetBackgroundPicture Sets the background graphic for a chart.
Public method SetDefaultChart Specifies the name of the chart template that Microsoft Word uses when creating new charts.
Public method SetElement Sets chart elements on a chart. Read/write.
Public method SetSourceData Sets the source data range for the Chart.
Public method XYGroups On a 2-D chart, returns an object that represents either a single scatter chart group (a ChartGroup object) or a collection of scatter chart groups (a ChartGroups collection).

Top

Properties

  Name Description
Public property 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.
Public property Area3DGroup Returns the area chart group on a 3-D chart.
Public property AutoScaling Scales a 3-D chart so that it's closer in size to the equivalent 2-D chart. The RightAngleAxes property must be True. Read/write.
Public property BackWall Returns a Walls object that allows the user to individually format the back wall of a 3-D chart. Read-only.
Public property Bar3DGroup Returns the bar chart group on a 3-D chart.
Public property BarShape Returns or sets the shape used for every series in a 3-D bar or column chart. Read/write.
Public property ChartArea Returns a ChartArea object that represents the complete chart area for the chart. Read-only.
Public property ChartData Returns information about the linked or embedded data associated with a chart. Read-only.
Public property ChartGroups Returns an object that represents either a single chart group or a collection of all the chart groups in the chart.
Public property ChartStyle Returns or sets the chart style for the chart. Read/write Object.
Public property ChartTitle Returns a ChartTitle object that represents the title of the specified chart. Read-only.
Public property ChartType Returns or sets the chart type. Read/write.
Public property Column3DGroup Returns the column chart group on a 3-D chart.
Public property Corners Returns the corners of a 3-D chart.
Public property Creator Returns a 32-bit Integer that indicates the application in which the specified object was created. Read-only.
Public property DataTable Returns a DataTable object that represents the chart data table. Read-only.
Public property DepthPercent Returns or sets the depth of a 3-D chart as a percentage of the chart width (between 20 and 2000 percent). Read/write.
Public property DisplayBlanksAs Returns or sets the way that blank cells are plotted on a chart. Can be one of the XlDisplayBlanksAs constants. Read/write.
Public property Elevation Returns or sets the elevation of the 3-D chart view, in degrees. Read/write.
Public property Floor Returns a Floor object that represents the floor of the 3-D chart. Read-only.
Public property GapDepth Returns or sets the distance between the data series in a 3-D chart, as a percentage of the marker width. The value of this property must be between 0 and 500. Read/write.
Public property HasAxis Returns or sets which axes exist on the chart. Read/write.
Public property HasDataTable Gets or sets a value that indicates whether the Chart has a data table. Read/write.
Public property HasLegend Returns True if the chart has a legend. Read/write.
Public property HasPivotFields Determines if the PivotChart controls are displayed on the specified PivotChart report
Public property HasTitle True if the axis or chart has a visible title. Read/write.
Public property HeightPercent Returns or sets the height of a 3-D chart as a percentage of the chart width (between 5 and 500 percent). Read/write.
Public property InDraftMode Reserved for internal use.
Public property Legend Returns a Legend object that represents the legend for the chart. Read-only.
Public property Line3DGroup Returns the line chart group on a 3-D chart.
Public property Parent Returns the parent for the specified object. Read-only.
Public property Perspective Returns or sets an Integer value that represents the perspective for the 3-D chart view.
Public property Pie3DGroup Returns the pie chart group on a 3-D chart.
Public property PivotLayout Not supported for this object.
Public property PlotArea Returns a PlotArea object that represents the plot area of a chart. Read-only.
Public property PlotBy Returns or sets the way columns or rows are used as data series on the chart. Can be one of the following XlRowCol constants: xlColumns or xlRows. Read/write.
Public property PlotVisibleOnly Gets or Sets a value that indicates whether only visible cells are plotted. Read/write.
Public property RightAngleAxes True if the chart axes are at right angles, independent of chart rotation or elevation. Applies only to 3-D line, column, and bar charts. Read/write.
Public property Rotation Returns or sets the rotation of the 3-D chart view (the rotation of the plot area around the z-axis, in degrees). The value of this property must be from 0 to 360, except for 3-D bar charts, where the value must be from 0 to 44. The default value is 20. Applies only to 3-D charts. Read/write.
Public property Shapes Returns a Shapes collection that represents all the shapes on the chart sheet. Read-only.
Public property ShowAllFieldButtons Gets or sets whether to display all field buttons on a Pivot Chart. This object, member, or enumeration is deprecated and is not intended to be used in your code.
Public property ShowAxisFieldButtons Gets or sets whether to display axis field buttons on a Pivot Chart. This object, member, or enumeration is deprecated and is not intended to be used in your code.
Public property ShowDataLabelsOverMaximum Returns or sets whether to show the data labels when the value is greater than the maximum value on the value axis. Read/write.
Public property ShowDraftModeButton
Public property ShowLegendFieldButtons Gets or sets whether to display legend field buttons on a PivotChart. This object, member, or enumeration is deprecated and is not intended to be used in your code.
Public property ShowReportFilterFieldButtons Gets or sets whether to display the report filter field buttons on a PivotChart. This object, member, or enumeration is deprecated and is not intended to be used in your code..
Public property ShowValueFieldButtons Gets or sets whether to display the value field buttons on a PivotChart. This object, member, or enumeration is deprecated and is not intended to be used in your code..
Public property SideWall Returns a Walls object that allows the user to individually format the side wall of a 3-D chart. Read-only.
Public property SubType This API supports the Visual Studio Tools for Office infrastructure and is not intended to be used directly from your code.
Public property SurfaceGroup Returns the surface chart group of a 3-D chart.
Public property Type Reserved for internal use.
Public property Walls Returns a Walls object that represents the walls of the 3-D chart. Read-only.

Top

See Also

Reference

Chart Interface

Microsoft.Office.Interop.Word Namespace