Table of Contents

TExcelFile.AddAutoShape Method

Adds an autoshape to the sheet. You can add shapes to a worksheet, or to a chart sheet. For an example on how to add a shape, please create a shape in Excel, then open the file with APIMate and look at the generated code.

Syntax

Unit: FlexCel.Core

function TExcelFile.AddAutoShape(shapeProperties: IShapeProperties): Integer; virtual; abstract;

Parameters

<-> Parameter Type Description
shapeProperties IShapeProperties Properties of the shape we want to add.

Returns

The object index of the new shape.

See also