RestartNumbering Property
- 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
Gets or sets a value determining whether a new numbered list begins.
Syntax
public bool RestartNumbering { get; set; }Public Property RestartNumbering As BooleanExamples
The following example applies RestartNumbering while converting three selected paragraphs into a usable numbered list.
textControl.Text = "Research\nDraft\nReview";
textControl.Select(0, textControl.Text.Length);
ListFormat listFormat = new()
{
Type = ListType.Numbered,
RestartNumbering = true
};
textControl.Selection.ListFormat = listFormat;textControl.Text = "Research" & vbCrLf & "Draft" & vbCrLf & "Review"
textControl.Select(0, textControl.Text.Length)
Dim listFormat As New ListFormat() With {
.Type = ListType.Numbered,
.RestartNumbering = True
}
textControl.Selection.ListFormat = listFormatRemarks
The property's default value is false.
The property returns its default value when the text selection contains multiple paragraphs with mixed settings or when the text selection does not contain a numbered list. The Selection.IsCommonValueSelected method can be used to check for mixed attributes.