DividePos Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets or sets the position at which the word should be divided. When a spellchecker has been connected with the SpellChecker property, this value has been calculated through the spellchecker. Otherwise it is zero. A TextControl uses this position to divide the word, when it is less or equal then MaxDividePos.
Syntax
public int DividePos { get; set; }Public Property DividePos As IntegerExamples
The following example uses HyphenateWordEventArgs.DividePos while handling HyphenateWord.
textControl.HyphenateWord += (_, e) =>
{
Console.WriteLine($"Divide Pos: {e.DividePos}");
};AddHandler textControl.HyphenateWord,
Sub(sender, e)
Console.WriteLine($"Divide Pos: {e.DividePos}")
End Sub