PulldownButton.AddPushButton
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.
public PushButton AddPushButton(
PushButtonData buttonData
)
-
buttonDataAn object containing the data needed to construct the pushbutton.
-
Thrown when buttonData isnullNothingnullptra null reference (Nothingin Visual Basic).
-
Thrown when button with buttonData.Name already exists in the button.