TXlsFile.AddLabel Method
Adds a Label to the active sheet.
Remarks
Excel supports 2 types of labels: ActiveX and internal (In Excel you would add them from the "ActiveX" and "Forms" toolbars respectively) The labels added by this method are of type internal. ActiveX labels are not supported.
Syntax
Unit: FlexCel.XlsAdapter
function TXlsFile.AddLabel(const anchor: TClientAnchor; const text: TRichString; const name: string): Integer; override;
Parameters
<-> | Parameter | Type | Description |
---|---|---|---|
const | anchor | TClientAnchor | Position for the label. |
const | text | TRichString | Text for the label. |
const | name | string | Name of the inserted label. |
Returns
Object Index of the inserted listbox (1 based).