TX Text Control .NET for Windows Forms

DividePos Property

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

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

Examples

The following example uses HyphenateWordEventArgs.DividePos while handling HyphenateWord.

textControl.HyphenateWord += (_, e) =>
{
    Console.WriteLine($"Divide Pos: {e.DividePos}");
};