Add and Customize Elements to RibbonBar group in C#.NET
KetticRibbonBar control offers the ribbon groups to include both button groups and elements. The button groups are able to store button groups and elements in a hierarchical structure and allow the users to add, remove, and customize the elements by using C# code. In this article, we are going through how to add and customize the elements programmatically.
Customization of Button Groups of RibbinBar Control
KetticRibbonBar control allows the users to add and customize the button groups for ribbon bar by using the KetticRibbonBarButtonGroup object. There are two methods available to add button groups or elements to a button group, KetticRibbonBarButtonGroup.Items.Add or KetticRibbonBarButtonGroup.Items.AddRange. To customize the button groups, we can modify these properties available, Orientation, DisplayBorder, and MinSize. The Orientation property is used to set the direction of the elements in the button group. The DisplayBorder property is used to enable the border of the button elements. MinSize property is used to minimize the size of the button group. RibbonBar Elements Adding in C#.NET
KetticRibbonBar control is capable of adding various elements to KetticRibbonBarGroup.Items or KetticRibbonBarButtonGroup.Items collection using C# code for .NET project, including, button elements, Check box elements, Drop-down button elements, Repeat button elements, Split button elements, Toggle button elements, and Image button elements. Properties for Customizing Button Elements in C#
KetticRibbonBar control uses the button elements to add buttons to ribbon bar and these buttons are able to show text and image on it. The following are the properties for customizing the button elements.
Check Box Elements Customizing in C#.NET
KetticRibbonBar control provides the check box element to add check box with a caption to ribbon bar. It shares all the properties for customizing button elements, including ShownStyle, Text, Image, ImageIndex, and ImageKey, TextImagePosition, ImageAlignment, TextAlignment, and TextOrientation. In addition, there are four more properties listed as below for customizing the KetticCheckBoxElement object.
Customization of Dropdown Button Elements
KetticRibbonBar uses drop down button element to add a drop-down items list. It shares all the properties for customizing button elements, including ShownStyle, Text, Image, ImageIndex, and ImageKey, TextImagePosition, ImageAlignment, TextAlignment, and TextOrientation. In addition, there are two more properties listed as below for customizing the KetticDropDownButtonElement.
Repeat Button Elements Customization in C#.NET
KetticRibbonBar uses the repeat button element to add a button to repeatedly fire the Click event. It shares all the properties for customizing button elements, including ShownStyle, Text, Image, ImageIndex, and ImageKey, TextImagePosition, ImageAlignment, TextAlignment, and TextOrientation. In addition, there are two more properties listed as below for customizing the KetticRepeatButtonElement object.
Customize Split Button Elements
KetticRibbonBar uses the split button element to add a menu item button to display the items when the arrow of the button is clicked. It shares all the properties for customizing button elements, including ShownStyle, Text, Image, ImageIndex, and ImageKey, TextImagePosition, ImageAlignment, TextAlignment, and TextOrientation. In addition, there are two more properties listed as below for customizing the KetticSplitButtonElement object.
Customize Toggle Button Elements
KetticRibbonBar uses the toggle button element to add a button to toggle between two states. It shares all the properties for customizing button elements, including ShownStyle, Text, Image, ImageIndex, and ImageKey, TextImagePosition, ImageAlignment, TextAlignment, and TextOrientation. In addition, there is one more property listed as below for customizing the KetticToggleButtonElement object.
Customize Image Button Elements
KetticRibbonBar uses the image button element to add a button to show multiple images. It shares all the properties for customizing button elements, including ShownStyle, Text, Image, ImageIndex, and ImageKey, TextImagePosition, ImageAlignment, TextAlignment, and TextOrientation. In addition, there are two more properties listed as below for customizing the KetticImageButtonElement object.
|
UI Controlsfor Windows Forms .NET WinForms UI Overview.NET WinForms UI Features.NET WinForms UI GuideC# WinForms UI DesignVB.NET WinForms UI DesignWinForms UI Controls WinForms Buttons UI Control WinForms Calendar UI ControlWinForms Carousel UI ControlWinForms Chart UI ControlWinForms Clock UI ControlCommandBar UI ControlWinForms Dock UI ControlDesktop Alert UI ControlDropDown List UI ControlWinForms Editor UI ControlForms and Dialogs UI ControlWinForms GridView UI ControlWinForms ListView UI ControlWinForms Menu UI ControlWinForms ComboBox UI ControlWinForms PageView UI ControlPanels and Labels UI ControlWinForms Panorama UI ControlWinForms PDFViewer UI ControlWinForms Property Grid UI ControlWinForms Ribbon UI ControlRibbon - Get Started in C#StructureCustomizationStart Menu and ShortcutsAdd and Remove Tabs & GroupsAdd and Remove Groups & ButtonsUse Different ElementsAdd Other ControlsContextual Tab GroupsStart Menu CustomizationQuick Access ToolbarCreate GalleryAdd Screen TipsAdd Key TipsUsing Large & Small ImagesDrag & drop to Move ItemsRibbon - StructureRibbon - C# ProgrammingAdd and Remov Tabs and GroupsAdd and Remov Groups and ButtonsAdd and and Customize ElementsManage Contextual Tab GroupsCustomize Application MenuCustomize Quick Access MenuRibbon - Backstage ViewGet Started in C#Customizing in C#Ribbon - End-User CapabilitiesCollapse the RibbonUsing Key TipsRibbon - LocalizationRight to Left SupportWinForms PivotGrid UI ControlWinForms RichTextBox UI ControlWinForms Rotator UI ControlWinForms Scheduler UI ControlWinForms Shortcuts UI ControlWinForms SpellChecker UI ControlWinForms Track & Status UI ControlWinForms TreeView UI ControlWinForms Wizard UI ControlWinForms Test UI ControlWinForms Theme UI Control |