TX Text Control .NET for Windows Forms

IsHyphenationEnabled Property

Property|Introduced in 20.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.Windows.Forms.dll from the private NuGet feed or Text Control Offline Packages

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; }

Examples

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();