ListFormat Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets or sets a bulleted or numbered list and/or its formatting attributes for the selected text. 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 formats the heading of a short document by using Selection.ListFormat.
textControl.Text = "Quarterly results\nRevenue increased by 12%.";
textControl.Select(0, 17);
Selection selection = textControl.Selection;
selection.ListFormat = new ListFormat();
if (selection.ListFormat != null)
{
Console.WriteLine("Selection: List Format is available.");
}textControl.Text = "Quarterly results" & vbCrLf & "Revenue increased by 12%."
textControl.Select(0, 17)
Dim selection As Selection = textControl.Selection
selection.ListFormat = New ListFormat()
If selection.ListFormat IsNot Nothing Then
Console.WriteLine("Selection: List Format is available.")
End IfLimitations
Runtime only.