If a script add-in adds dynamic toolbar buttons via the the OnAddButtons event, the method receives an AddButtonsData object whenever it needs to generate or update the list of buttons.
Property Name | Return Type | Description |
---|---|---|
args |
Returns an Args object representing the function's parsed arguments. |
|
buttons |
Returns an AddButtonHelper object that is used to add buttons. |
|
cmdline |
string |
Provides the command line being used to generate the buttons. |
embedded |
string |
Provides the embedded function body, if supplied by the user. |
lister |
Lister whose toolbar the commands are being added to (0 if not applicable). |
|
viewer |
Viewer whose toolbar the commands are being added to (0 if not applicable). |