ListFormat Constructor
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Creates a new instance of the ListFormat class.
Syntax
ListFormat()
Creates a new empty instance of the ListFormat class.
public ListFormat();Public Sub New()ListFormat(ListType)
Creates a new instance of the ListFormat class which has the specified list type.
public ListFormat(ListType type);Public Sub New(type As ListType)| Parameter | Description | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| type | Specifies one of the ListType values. The following values are possible:
|
Examples
The following example creates a numbered-list format and applies it to three selected action items.
textControl.Text = "Research\nDraft\nReview";
textControl.Select(0, textControl.Text.Length);
ListFormat listFormat = new()
{
Type = ListType.Numbered,
NumberFormat = NumberFormat.ArabicNumbers
};
textControl.Selection.ListFormat = listFormat;textControl.Text = "Research" & vbCrLf & "Draft" & vbCrLf & "Review"
textControl.Select(0, textControl.Text.Length)
Dim listFormat As New ListFormat() With {
.Type = ListType.Numbered,
.NumberFormat = NumberFormat.ArabicNumbers
}
textControl.Selection.ListFormat = listFormat