/
HotXLS-Doku

AddTextBox-Methode

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

Syntax

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

Beispiel

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


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