Edytuj

Udostępnij za pośrednictwem


Charts.Add2(Object, Object, Object, Object) Method

Definition

Inserts a chart directly onto the grid.

public Microsoft.Office.Interop.Excel.Chart Add2 (object Before, object After, object Count, object NewLayout);
Public Function Add2 (Optional Before As Object, Optional After As Object, Optional Count As Object, Optional NewLayout As Object) As Chart

Parameters

Before
Object

An object that specifies the sheet before which the new sheet is added.

After
Object

An object that specifies the sheet after which the new sheet is added.

Count
Object

The number of sheets to be added. The default value is one.

NewLayout
Object

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

Returns

Applies to