ListFormat Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesServer. dll
Description
Gets or sets the type and the formatting attributes of a bulleted or numbered list. The property value is an object of the type ListFormat. For more information see the description of the ListFormat class.
Syntax
public ListFormat ListFormat { get; set; }Public Property ListFormat As ListFormatExamples
The following example applies a bulleted list format to the current paragraphs.
textControl.Text = "Research\nDraft\nReview";
textControl.Select(0, textControl.Text.Length);
ListFormat format = textControl.ListFormat;
format.Type = ListType.Bulleted;
textControl.ListFormat = format;textControl.Text = "Research" & vbCrLf & "Draft" & vbCrLf & "Review"
textControl.Select(0, textControl.Text.Length)
Dim format As ListFormat = textControl.ListFormat
format.Type = ListType.Bulleted
textControl.ListFormat = format