HyphenateWord Event
- Namespace
TXTextControl.WPF
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWPF. dll
Description
Occurs, if a word does not fit in the line and must be hyphenated. This event occurs only, if the IsHyphenationEnabled property has been set to true. The event handler receives an argument of type HyphenateWordEventArgs containing data related to this event.
Syntax
public event HyphenateWordEventHandler HyphenateWord;Public Event HyphenateWord As HyphenateWordEventHandlerExamples
The following example records useful context when hyphenate word occurs.
textControl.HyphenateWord += (sender, e) =>
{
Console.WriteLine($"Divide Pos: {e.DividePos}");
};AddHandler textControl.HyphenateWord,
Sub(sender, e)
Console.WriteLine($"Divide Pos: {e.DividePos}")
End Sub