PulldownButton.AddPushButton
Method
Description:
Adds a new pushbutton to the pulldown button and associates it with an ExternalCommand.
Adds a new pushbutton to the pulldown button and associates it with an ExternalCommand.
Remarks:
The new button will display its large image if PushButton.LargeImage is set.
The new button will display its large image if PushButton.LargeImage is set.
Parameters
| Parameter | Type | Description |
|---|---|---|
| buttonData | PushButtonData | An object containing the data needed to construct the pushbutton. |
Return Value
| Type | Description |
|---|---|
| PushButton | The newly added pushbutton. |
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | Thrown when buttonData is. |
| ArgumentException | Thrown when button with buttonData.Name already exists in the button. |