ListNumber Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets the paragraph's list number. It is zero, if the paragraph does not belong to a numbered list.
Syntax
public int ListNumber { get; }Public ReadOnly Property ListNumber As IntegerExamples
The following example examines the first paragraph in a short document by using Paragraph.ListNumber.
textControl.Text = "Quarterly results\nRevenue increased by 12%.";
Paragraph paragraph = textControl.Paragraphs[1];
Console.WriteLine($"List Number: {paragraph.ListNumber}");
Console.WriteLine("Paragraph is ready for use.");textControl.Text = "Quarterly results" & vbCrLf & "Revenue increased by 12%."
Dim paragraph As Paragraph = textControl.Paragraphs(1)
Console.WriteLine($"List Number: {paragraph.ListNumber}")
Console.WriteLine("Paragraph is ready for use.")Limitations
Read only.