編輯

共用方式為


ChartObjects.Add(Double, Double, Double, Double) Method

Definition

Creates a new embedded chart. Returns a ChartObject object.

public:
 Microsoft::Office::Interop::Excel::ChartObject ^ Add(double Left, double Top, double Width, double Height);
public Microsoft.Office.Interop.Excel.ChartObject Add (double Left, double Top, double Width, double Height);
Public Function Add (Left As Double, Top As Double, Width As Double, Height As Double) As ChartObject

Parameters

Left
Double

Required Double. The initial coordinates of the new object (in points), relative to the upper-left corner of cell A1 on a worksheet or to the upper-left corner of a chart.

Top
Double

Required Double. The initial coordinates of the new object (in points), relative to the upper-left corner of cell A1 on a worksheet or to the upper-left corner of a chart.

Width
Double

Required Double. The initial size of the new object in points.

Height
Double

Required Double. The initial size of the new object in points.

Returns

Applies to