HotXLS Docs

Items property

Returns a single shape from a TXLSShapes collection.

Syntax

property Items[Index: Integer]: TXLSShape; default;
Index Required Integer. The index number of the TXLSShape object.

Example

The following example deletes first shape from shape collection on sheet one

with Workbook.Sheets[1] do begin
  if Shapes.Count > 0 then Shapes.Items[1].Delete;
end;
This example is the same to previous.

with Workbook.Sheets[1] do begin
  if Shapes.Count > 0 then Shapes[1].Delete;
end;