Adds a button to the sheet, with the associated macro.
Syntax
Unit: FlexCel.Core
function TExcelFile.AddButton(const anchor: TClientAnchor; const text: TRichString; const name: string; const macro: string): Integer; virtual; abstract;
Parameters
| <-> | 
Parameter | 
Type | 
Description | 
| const | 
anchor | 
TClientAnchor | 
Position for the button. | 
| const | 
text | 
TRichString | 
Text that will be shown in the button. | 
| const | 
name | 
string | 
Name for the inserted button. | 
| const | 
macro | 
string | 
Macro associated with the button. | 
 
See also