TX Text Control .NET for Windows Forms

ListFormat Property

Property
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

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; }

Examples

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.");
}

Limitations

Runtime only.