TX Text Control .NET for Windows Forms Documentation

ListFormat Class

An instance of the ListFormat class represents the formatting attributes of a bulleted or numbered list.

Syntax

[C#] public class ListFormat
[Visual Basic] Public Class ListFormat

Constructors

ConstructorDescription
ListFormatInitializes a new instance of the ListFormat class.

Properties

PropertyDescription
BulletCharacterGets or sets the symbol character for a bulleted list.
BulletSizeGets or sets the size of the symbol character for a bulleted list.
CharAfterNumberObsolete. Gets or sets a character that is displayed behind the number in a numbered list.
CharBeforeNumberObsolete. Gets or sets a character that is displayed in front of the number in a numbered list.
FirstNumberGets or sets the starting number for a numbered list.
FormatCharacterGets or sets the formatting character for a bulleted or numbered list.
HangingIndentGets or sets the hanging indent of a numbered list.
LeftIndentGets or sets the left indent for a numbered list.
LevelGets or sets the level for a bulleted or numbered list.
NumberFormatGets or sets the number format for a numbered list.
RestartNumberingGets or sets a value determining whether a new numbered list begins.
TextAfterNumberGets or sets the text that is displayed behind the number in a numbered list.
TextBeforeNumberGets or sets the text that is displayed in front of the number in a numbered list.
TypeGets or sets the type of the list, bulleted, numbered or none.

Enumerations

EnumerationDescription
AttributeDetermines a certain list format attribute.

Fields

FieldDescription
MaxLevelRepresents the maximum of levels for bulleted and numbered lists.
MaxTextRepresents the maximum number of charcters for the additinal text in front and behind the number of a numbered list.

Example

The following example shows how to create a new ListFormat and how to apply it at the current input position.

[C#] TXTextControl.ListFormat lf = new TXTextControl.ListFormat(); lf.Type = TXTextControl.ListType.Numbered; lf.FirstNumber = 5; textControl1.Selection.ListFormat = lf;
[Visual Basic] Dim lf As TXTextControl.ListFormat = New TXTextControl.ListFormat() lf.Type = TXTextControl.ListType.Numbered lf.FirstNumber = 5 TextControl1.Selection.ListFormat = lf

See Also

 
 
 

Products

Support

Downloads

Corporate

Buy Now