TX Text Control .NET Server

ListFormat Property

Property
Namespace
TXTextControl
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.dll

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.

Further Reading

  • Automatic Numbered Lists Using TX Text Control .NET for Windows Forms –