CommandBarButtons.Delete

Syntax:

Delete(<Index>)

Parameters:

<Index> (required)

Type: Number; CommandBarButton.
Button position on the command bar or the command bar button.

Description:

Deletes a command bar button.

Availability:

Thick client.

Example:

// The CommandBar1 command bar contains a submenu Fill
// Deleting the FromTerminalOfGathering button from a submenu (gathering data)
Buttons = Controls.CommandBar1.Buttons.Fill.Buttons;
BottomIndex = CommandBar1.IndexOf(Buttons.FromTerminalOfGathering);
Buttons.Delete(BottomIndex);


    

1C:Enterprise Developer's Community