Unicode_LineBreaks - harborsiem/WinForms-Ribbon GitHub Wiki

4 Byte Unicode characters (eg. Chinese) and Line break

Hints for using 4 byte Unicode characters (e.g. Chinese) with the Ribbon Framework

For the LabelTitle (Label) property you should set a Line break as last character. This will avoid an extra Line break in the user interface for the last character of the Label text. This is probably a bug. See also, Hints for Line breaks in String-Properties below.

Hints for Line breaks in String-Properties

For some Ribbon Controls there are line breaks possible for the Properties LabelTitle (Label), LabelDescription, TooltipTitle and TooltipDescription. You can set a line break in the markup by a Text Editor, in the code behind or since RibbonTools version 1.3.7 also in the RibbonTools.

In the following example we have defined a Command for a RibbonButton with the name "ButtonHeatCurve". In Code behind you can write:


ButtonHeatCurve.TooltipDescription = "Heating" + (char)0xa + "Curve";

In Xml markup you can write this with a text editor to the TooltipDescription:


Heating
Curve

In RibbonTools64 you write to TooltipDescription:


Heating\nCurve

The result is always the same when TooltipDescription is shown:

Heating
Curve