Gets or sets the type of the list, bulleted, numbered or none. The property's value is one of the values of the ListType enumeration.

Syntax

public ListType Type { get; set; }
Public Property Type() As ListType

Members

Member Description
None The text is neither a bulleted nor a numbered list.
Bulleted The list is a bulleted list.
Numbered The list is a numbered list.
Structured The list is a structured list. All numbers of higher levels (lower level numbers) are displayed in front of the list number. The additional text of all levels in front and behind the list numbers is also displayed.

Examples

The following example sets the type of list as Numbered using property called Type.

TXTextControl.ListFormat lf = new TXTextControl.ListFormat();

lf.Type = TXTextControl.ListType.Numbered;
lf.FirstNumber = 5;

textControl1.Selection.ListFormat = lf;
Dim lf As TXTextControl.ListFormat = New TXTextControl.ListFormat()

lf.Type = TXTextControl.ListType.Numbered
lf.FirstNumber = 5

TextControl1.Selection.ListFormat = lf

Remarks

The property's default value is ListType.None.

The property returns its default value when the text selection contains multiple paragraphs with mixed types. The Selection.IsCommonValueSelected method can be used to check for mixed attributes.