TX Text Control .NET for WPF

IsHyphenationEnabled Property

Property|Introduced in 20.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.Server.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 ServerTextControl.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 ServerTextControl.IsHyphenationEnabled to enable automatic word hyphenation. The configured value is checked before the workflow continues.

textControl.IsHyphenationEnabled = true;
if (textControl.IsHyphenationEnabled)
{
    Console.WriteLine("Server Text Control: Is Hyphenation Enabled is enabled.");
}