Edit this page

Multi-Line Menu Item Text

The RadMenuItem.Text property can be displayed on multiple lines as shown in the screenshot below.

menus-menu-working-with-radmenu-items-multi-line-menu-item-text 001

In the Properties Window for a RadMenuItem use the drop down list to invoke the editor for multiple lines. Ctrl+Enter creates a new line in the editor. Esc cancels changes and closes the editor. 

menus-menu-working-with-radmenu-items-multi-line-menu-item-text 002

In code use Environment.NewLine to separate strings:

radMenuItem1.Text = "Bar Chart - " +
 Environment.NewLine +
 "Compare multiple series of data";

radMenuItem1.Text = "Bar Chart - " & Environment.NewLine & "Compare multiple series of data"

The AllItemsEqualHeight property controls whether the RadMenu allows some menu items to be higher than others. By default, menu items with multiple lines of text are higher than menu items with single lines of text. If you set this property to true, the height of all items increases to match that of the tallest items.

radMenu1.AllItemsEqualHeight = true;

radMenu1.AllItemsEqualHeight = True

See Also