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