TX Text Control .NET for WPF

MaxText Field

Field
Namespace
TXTextControl
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

Description

Represents the maximum number of charcters for the additinal text in front and behind the number of a numbered list. The value of this constant is 20.

Syntax

public const int MaxText = 20;

Examples

The following example validates a custom list label before assigning it.

string label = "Appendix ";
if (label.Length <= ListFormat.MaxText)
{
    ListFormat listFormat = textControl.Selection.ListFormat;
    listFormat.TextBeforeNumber = label;
    textControl.Selection.ListFormat = listFormat;
}