.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

ShapeCollection.AddShape Method

Name Parameters Description
AddShape(ShapeGeometryPreset, Cell, Single, Single) shapePreset, topLeftCell, width, height

Inserts a shape so that its top left corner is located at the specified cell.

AddShape(ShapeGeometryPreset, CellRange) shapePreset, targetRange

Inserts a shape to fit in the specified range.

AddShape(ShapeGeometryPreset, Single, Single, Single, Single) shapePreset, x, y, width, height

Inserts a shape with a specific geometry type.