IsHyphenationEnabled Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. dll
Description
Gets or sets a value indicating whether hyphenation is active or not. If hyphenation is enabled, a word at the end of a line is automatically divided with a connected spell checking component. A spell checking component can be connected with the SpellChecker property. Additionally, the TextControl.HyphenateWord event is raised with the calculated divide position. This position can be changed through a connected event handler.
Syntax
public bool IsHyphenationEnabled { get; set; }Public Property IsHyphenationEnabled As BooleanExamples
The following example uses TextControl.IsHyphenationEnabled to enable automatic word hyphenation. The change is then applied to the active document or user interface.
textControl.IsHyphenationEnabled = true;
textControl.Update();textControl.IsHyphenationEnabled = True
textControl.Update()