TX Text Control .NET for Windows Forms

MaxDividePos 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 the maximum dividing position. For example, when this value is 3, the first 3 characters of the word is the maximum part of the word which fit on the line.

Syntax

public int MaxDividePos { get; }

Examples

The following example uses HyphenateWordEventArgs.MaxDividePos while handling HyphenateWord.

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