The following illustrated text uses the minimum text width for the source text, which displays as multiple lines. The minimum text width corresponds to the word that has the greatest width—in this case, the word "jumped". Notice that multiple words can appear on the same line, as long as their total width does not exceed the minimum text width.
Minimum text width
If the value passed to MaxTextWidth is greater than or equal to the value of MinWidth, the text is formatted without ellipsis characters.
// Get the minimimum line width for the text content -- that is, the widest word. double minWidth = formattedText.MinWidth;
// Set the maximum text width to the widest word in the text content.
formattedText.MaxTextWidth = minWidth;
Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)