Table of Contents

TExcelFile.AddRadioButton Method

Overloads

TExcelFile.AddRadioButton(TClientAnchor, TRichString)

Adds a radio button to the active sheet. Call 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.Core

function TExcelFile.AddRadioButton(const anchor: TClientAnchor; const text: TRichString): Integer; overload;

Parameters

<-> Parameter Type Description
const anchor TClientAnchor Position for the radio button.
const text TRichString Text for the radio button.

Returns

Object Index of the inserted radio button (1 based).

See also

TExcelFile.AddRadioButton(TClientAnchor, TRichString, string)

Adds a radio button to the active sheet. Call 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.Core

function TExcelFile.AddRadioButton(const anchor: TClientAnchor; const text: TRichString; const name: string): Integer; overload; virtual; abstract;

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).

See also