TX Text Control .NET Server

ListFormat Object

Object|Introduced in 28.0

Description

The ListFormat object defines the formatting attributes of a bulleted or numbered list.

Syntax

ListFormat

Examples

The following example demonstrates ListFormat in a practical document-editing workflow. The ListFormat object defines the formatting attributes of a bulleted or numbered list.

function onTxError(error) {
    console.error("TX Text Control error:", error.msg);
    error.handled = true;
}

TXTextControl.listFormat.getBulletCharacter(
    function(result) {
        console.log("get bullet character result:", result);
    },
    onTxError
);

Members

Methods

MethodDescription
getBulletCharacterGets the symbol character for a bulleted list.
getBulletSizeGets the size of the symbol character for a bulleted list.
getFirstNumberGets the starting number for a numbered list.
getFontNameGets the font used for the bullet character.
getFormatCharacterGets the formatting character for a bulleted or numbered list.
getHangingIndentGets the hanging indent of a numbered list.
getLeftIndentGets the left indent for a numbered list.
getLevelGets the level for a bulleted or numbered list.
getNumberFormatGets the number format for a numbered list.
getRestartNumberingGets a value determining whether a new numbered list begins.
getTextAfterNumberGets the text that is displayed behind the number in a numbered list.
getTextBeforeNumberGets the text that is displayed in front of the number in a numbered list.
getTypeGets the type of the list, bulleted, numbered or none.
setBulletCharacterSets the symbol character for a bulleted list.
setBulletSizeSets the size of the symbol character for a bulleted list.
setFirstNumberSets the starting number for a numbered list.
setFontNameSets the font used for the bullet character.
setFormatCharacterSets the formatting character for a bulleted or numbered list.
setHangingIndentSets the hanging indent of a numbered list.
setLeftIndentSets the left indent for a numbered list.
setLevelSets the level for a bulleted or numbered list.
setNumberFormatSets the number format for a numbered list.
setRestartNumberingSets the value determining whether a new numbered list begins.
setTextAfterNumberSets the text that is displayed behind the number in a numbered list.
setTextBeforeNumberSets the text that is displayed in front of the number in a numbered list.
setTypeSets the type of the list, bulleted, numbered or none.

Enumerations

EnumerationDescription
AttributeDetermines a certain list format attribute.