Export (0) Print
Expand All

Shapes.AddChart2 Method (PowerPoint)

Office 2013

Adds a chart to the document. Returns a Shape object that represents a chart and adds it to the specified collection.

Version Added: PowerPoint 2013

expression .AddChart2(Style,Type,Left,Top,Width,Height,NewLayout)

expression A variable that represents a Shapes object.

Parameters

Name

Required/Optional

Data type

Description

Style

Optional

Long

The chart style.

Type

Optional

XLCHARTTYPE

The type of chart.

Left

Optional

Single

The position, in points, of the left edge of the chart, relative to the anchor.

Top

Optional

Single

The position, in points, of the top edge of the chart, relative to the anchor.

Width

Optional

Single

The width, in points, of the chart.

Height

Optional

Single

The height, in points, of the chart.

NewLayout

Optional

Boolean

If NewLayout is true, the chart is inserted by using the new dynamic formatting rules (Title is on, and Legend is on only if there are multiple series).

Style

Optional

INT

Type

Optional

XLCHARTTYPE

Left

Optional

FLOAT

Top

Optional

FLOAT

Width

Optional

FLOAT

Height

Optional

FLOAT

NewLayout

Optional

BOOL

Return value

SHAPE

Show:
© 2015 Microsoft