IsHyphenationEnabled Property
- Namespace
TXTextControl.WPF
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWPF. 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 WPF.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 configured value is checked before the workflow continues.
textControl.IsHyphenationEnabled = true;
if (textControl.IsHyphenationEnabled)
{
Console.WriteLine("Text Control: Is Hyphenation Enabled is enabled.");
}textControl.IsHyphenationEnabled = True
If textControl.IsHyphenationEnabled Then
Console.WriteLine("Text Control: Is Hyphenation Enabled is enabled.")
End If