Category / Section
How to localize the ribbon display option menu in WinForms RibbonControlAdv?
1 min read
Localize the ribbon display option
You can localize the Ribbon display option menu by using the function named SetRibbon2013OptionValues in RibbonControlAdv. Refer to the following code examples.
C#
//Localizes the Ribbon display option menu this.ribbonControlAdv1.SetRibbon2013OptionValues(ControlItems.AutoHide, "Auto-Hide ruban", "Cacher le ruban. Cliquez en haut de l'application de la montrer", new Font("Segoe UI", 12), this.Font); this.ribbonControlAdv1.SetRibbon2013OptionValues(ControlItems.RibbonMinimizePanel, "Afficher les onglets", "Afficher les onglets du Ruban seulement. Cliquez sur un des onglets pour afficher les commens", new Font("Segoe UI", 12), this.Font); this.ribbonControlAdv1.SetRibbon2013OptionValues(ControlItems.RibbonPanel, "Afficher les onglets et commets", "Afficher les onglets du Ruban et commentaires tout le temps", new Font("Segoe UI", 12), this.Font);
VB
'Localizes the Ribbon display option menu Me.ribbonControlAdv1.SetRibbon2013OptionValues(ControlItems.AutoHide, "Auto-Hide ruban", "Cacher le ruban. Cliquez en haut de l'application de la montrer", New Font("Segoe UI", 12), Me.Font) Me.ribbonControlAdv1.SetRibbon2013OptionValues(ControlItems.RibbonMinimizePanel, "Afficher les onglets", "Afficher les onglets du Ruban seulement. Cliquez sur un des onglets pour afficher les commens", New Font("Segoe UI", 12), Me.Font) Me.ribbonControlAdv1.SetRibbon2013OptionValues(ControlItems.RibbonPanel, "Afficher les onglets et commets", "Afficher les onglets du Ruban et commentaires tout le temps", New Font("Segoe UI", 12), Me.Font)
Figure 1: Localized Ribbon display option.
Figure 2: Default Ribbon display option
Samples: