Wrapping Text in RadMenu and RadDropDownButton Items in WinForms
Environment
Product Version | Product | Author |
---|---|---|
2024.3.924 | RadDropDownButton for WinForms | Hristo Krastev |
Description
When using a RadMenu or a RadDropDownButton in Telerik UI for WinForms, you might have items with long text that doesn't fit comfortably within the viewable area. This article demonstrates how to wrap such text to ensure it's completely visible.
This KB article also answers the following questions:
- How to use text wrapping for menu items in WinForms applications?
- How to ensure long text is visible in RadMenu items?
Solution
To wrap the text of a RadMenuItem
, access the TextPrimitive
object responsible for painting the text. Then set its MaxSize
and TextWrap
properties to enable text wrapping.
Adjust the MaxSize
property according to your requirements to ensure the text fits well within the available space.