$99 VS $1000+. UI Control for ASP.NET AJAX(contains chart and gridview).
Menus UI WinForms Control
Create attractive menus in C#.NET for your Windows Forms applications
Home > WinForms UI Controls > User Manual > Multiple-Line Text in C#

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-lines

Enable 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.
  1. Open the Property Window of the KetticMenuItem you are designing in C#.NET project
  2. Press the Ctrl and Shift keys synchronously to create a new line in the editor
  3. Accept the changes by pressing the Ctrl and Enter synchronously and close the editor
  4. If we need to cancel the changes, use the Esc key to give up the previous changes

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.

ketticMenuItem1.Text = "Menu Text: " +
Environment.NewLine +
"divided into multiple 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

ketticMenu1.AllItemsEqualHeight = true;
UI Controlsfor Windows Forms
.NET WinForms UI Overview.NET WinForms UI Features.NET WinForms UI GuideC# WinForms UI DesignVB.NET WinForms UI Design
WinForms UI Controls