Docs HotXLS

AddTextBox-method

Inserts a textbox shape with the specified text contents anchored to cell ranges

Syntaxe

function AddTextBox(AText: WideString; ARow1, ACol1, ARow2, ACol2: Integer): TXLSTextBox; overload; function AddTextBox(AText: WideString; ARange: WideString): TXLSTextBox; overload;

Exemple

This example adds a textbox to the cell range A1:D5

Workbook.Sheets[1].Shapes.AddTextBox('Hello World', 'A1:D5');