Table of Contents

TXlsFile.AddGroupBox Method

Adds a Group box to the active sheet. Call TExcelFile.AddRadioButton(TClientAnchor, TRichString) to insert radio buttons inside the group box.

Remarks

Excel determines if a radio button is inside a group box by looking at the coordinates of both objects. To include a radio button inside the group box, just make sure it is entirely inside the group box. Object hierarchy doesn't matter here, only the positions of the group box and the radio button.

Syntax

Unit: FlexCel.XlsAdapter

function TXlsFile.AddGroupBox(const anchor: TClientAnchor; const text: TRichString; const name: string): Integer; overload; override;

Parameters

<-> Parameter Type Description
const anchor TClientAnchor Position for the group box.
const text TRichString Text for the group box.
const name string Name for the inserted Group box

Returns

Object Index of the inserted group box (1 based).

See also