Shapes.AddShape(MsoAutoShapeType, Single, Single, Single, Single) メソッド

定義

ワークシート内の Shape 新しいオートシェイプを表すオブジェクトを返します。

public:
 Microsoft::Office::Interop::Excel::Shape ^ AddShape(Microsoft::Office::Core::MsoAutoShapeType Type, float Left, float Top, float Width, float Height);
public Microsoft.Office.Interop.Excel.Shape AddShape (Microsoft.Office.Core.MsoAutoShapeType Type, float Left, float Top, float Width, float Height);
Public Function AddShape (Type As MsoAutoShapeType, Left As Single, Top As Single, Width As Single, Height As Single) As Shape

パラメーター

Type
MsoAutoShapeType

必須 MsoAutoShapeType。 作成するオートシェイプの種類を指定します。

Left
Single

単精度浮動小数点型 (Single) の値を使用します。 文書の左上隅を基準に、オートシェイプの境界ボックスの左上隅となる位置をポイント単位で指定します。

Top
Single

単精度浮動小数点型 (Single) の値を使用します。 文書の左上隅を基準に、オートシェイプの境界ボックスの左上隅となる位置をポイント単位で指定します。

Width
Single

単精度浮動小数点型 (Single) の値を使用します。 オートシェイプの境界ボックスの幅と高さをポイント単位で指定します。

Height
Single

単精度浮動小数点型 (Single) の値を使用します。 オートシェイプの境界ボックスの幅と高さをポイント単位で指定します。

戻り値

注釈

追加したオートシェイプの種類を変更するには、 プロパティを設定します AutoShapeType

適用対象