MaxText Field
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesCore. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.dll
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;Public Const MaxText As Integer = 20Examples
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;
}Dim label As String = "Appendix "
If label.Length <= ListFormat.MaxText Then
Dim listFormat As ListFormat = textControl.Selection.ListFormat
listFormat.TextBeforeNumber = label
textControl.Selection.ListFormat = listFormat
End If