Version

TextSectionBreakMode Property

Specifies how words are broken up into text sections.
Syntax
'Declaration
 
Public Property TextSectionBreakMode As Infragistics.Win.FormattedLinkLabel.TextSectionBreakMode
public Infragistics.Win.FormattedLinkLabel.TextSectionBreakMode TextSectionBreakMode {get; set;}
Remarks

This property is used to tell the FormattedTextEditor to break each word into a separate text section.

A setting of Word will force the control to create a separate text section for each word in the text.

A setting of OnlyWhenNecessary will allow the control to combine as many words as possible into a single section. This saves memory and provides more natural spacing between words.

A setting of Default will use either Word or OnlyWhenNeccessary settings based on several factors. If the text alignment is set to Justified, then the text must be broken up by word.

When using GDI Plus text rendering, the OnlyWhenNeccessary setting can cause problems with text selection for certain fonts. This is due to inaccuracies in the measurement of text in GDI Plus. So by default, when GDI Plus is used, a Default setting will resolve to Word. This will allow selection to work properly, but causes more UIElements to be created (and thus more memory used) and also causes the spacing between words to be fixed, rather than the more natural spacing of multiple words rendered with GDI Plus.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also