ListFormat Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets or sets the style's bulleted or numbered list and/or its formatting attributes. The property's value is an object of the type ListFormat.
Syntax
public ListFormat ListFormat { get; set; }Public Property ListFormat As ListFormatExamples
The following example creates and configures a reusable paragraph style for the document by using ParagraphStyle.ListFormat.
ParagraphStyle paragraphStyle = new("ReportHeading");
textControl.ParagraphStyles.Add(paragraphStyle);
paragraphStyle.ListFormat = new ListFormat();
if (paragraphStyle.ListFormat != null)
{
Console.WriteLine("Paragraph Style: List Format is available.");
}Dim paragraphStyle As New ParagraphStyle("ReportHeading")
textControl.ParagraphStyles.Add(paragraphStyle)
paragraphStyle.ListFormat = New ListFormat()
If paragraphStyle.ListFormat IsNot Nothing Then
Console.WriteLine("Paragraph Style: List Format is available.")
End If