TX Text Control .NET for WPF

ListNumberText Property

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

Description

Gets the paragraph's list number text. The text consists of the text in front of the number, the number itself and the text behind the list number. It is an empty string, if the paragraph does not belong to a numbered list.

Syntax

public string ListNumberText { get; }

Examples

The following example examines the first paragraph in a short document by using Paragraph.ListNumberText.

textControl.Text = "Quarterly results\nRevenue increased by 12%.";
Paragraph paragraph = textControl.Paragraphs[1];

Console.WriteLine($"List Number Text: {paragraph.ListNumberText}");
Console.WriteLine("Paragraph is ready for use.");

Limitations

Read only.