Ribbon for WinForms
設定ツールバー
要素 > 設定ツールバー

The Ribbon Configuration Toolbar (RibbonConfigToolBar) allows the user to place commonly-used commands in a toolbar located in the upper-right corner of the Ribbon. Unlike QAT, this toolbar cannot be moved below the Ribbon. The user can observe that it is present at the same level as the Ribbon tabs.

The ribbon control depicted in the image below shows a Configuration Toolbar with Ribbon buttons (Cut, Copy and Paste).

Adding Items to Configuration Toolbar

A user can configure Ribbon buttons in the configuration toolbar. For instance, let's say a user wants to perform Cut, Copy or Paste operation in the application. For this, the user has to search through the tabs and groups to find the commands. With the configuration toolbar, you do not have to tediously search for commands. Instead, you can add these commands to the toolbar and customize it.

At design time, you can add items or buttons to the Configuration Toolbar with the help of Items property in the Properties Window. The user can click on the RibbonConfigToolBar Items Collection Editor to add buttons on the toolbar. Further, the text and icon image of these buttons can be customized using the Ribbon Button floating toolbar. For more information, refer this topic.

A user can also add buttons to the Configuration Toolbar programmatically. This is shown in the code below:

Public Sub ConfigToolbarItems(customRibbon As C1Ribbon)
    'デフォルトのConfigToolbarに追加するアイテムを作成します
    Dim cutButton As New RibbonButton("Cut", Image.FromFile("images\cut.png"))
    Dim copyButton As New RibbonButton("Copy", Image.FromFile("images\copy.png"))
    Dim pasteButton As New RibbonButton("Paste", Image.FromFile("images\paste.png"))

    'ConfigToolbarのアイテムを追加します
    customRibbon.ConfigToolBar.Items.Add(cutButton)
    customRibbon.ConfigToolBar.Items.Add(copyButton)
    customRibbon.ConfigToolBar.Items.Add(pasteButton)
End Sub
public void AddConfigToolbarItems(C1Ribbon customRibbon)
{
    
    //デフォルトのConfigToolbarに追加するアイテムを作成します
    RibbonButton cutButton = new RibbonButton("Cut", Image.FromFile(@"images\cut.png"));
    RibbonButton copyButton = new RibbonButton("Copy", Image.FromFile(@"images\copy.png"));
    RibbonButton pasteButton = new RibbonButton("Paste", Image.FromFile(@"images\paste.png"));
    
    //ConfigToolbarのアイテムを追加します
    customRibbon.ConfigToolBar.Items.Add(cutButton);
    customRibbon.ConfigToolBar.Items.Add(copyButton);
    customRibbon.ConfigToolBar.Items.Add(pasteButton);
   
}