Display Multiple Lines Text on Menu Item in C#.NET
Sometimes, when the text that we will put on the menu items exceeding the width of the item, we may need to break the text into more than a single line and display them in multiple lines. Kettic Menu Control contains the Text property for KetticMenuItem to break the text into multiple lines shown on menu items.
How to Break Text of Menu Item in Multi-linesEnable Multiple Lines of Menu Item Text in Propertys
To display menu items text in multiple lines, we need to invoke the text editor of multiple lines. The following are the simple steps to accomplish this.
Enable Multiple Lines of Menu Item Text in C#.NET
It is easy to enable the multiple text lines of menu items in C#.NET template projects. This is accomplished by using the Environment.NewLine to break strings into two or more lines.
How to Set Menu Item Height in C#.NET
When the text shown on the menu items divided into multiple lines, we may need the height of the menu item can fit the text. Kettic Menu control contains the AllItemsEqualHeight property to determine if some menu items will be taller than others. The default setting allows the menu items with multi-lines text to be taller than that with a single line of text. When we set the value of the property to True, the height of all items will be the same as the highest menu items.
C# code for setting the height of all items to the highest items
| ![]() 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 ControlMenu - Get Started in C#Menu - Menu DesignerMenu - Working with ItemsAdd / RemoveMulti-Line TextEventsMenu - Styling & AppearanceMenu OrientationMenu BackgroundMenu Item ImagesAnimation EffectsMenu - Menu MergeMenu - Application MenuMenu - Context MenuWinForms ComboBox UI ControlWinForms PageView UI ControlPanels and Labels UI ControlWinForms Panorama UI ControlWinForms PDFViewer UI ControlWinForms Property Grid UI ControlWinForms Ribbon UI ControlWinForms 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 |