Javascript: ListFormat.Attribute Enumeration
Description
Determines a certain list format attribute.
Members
| Member | Description |
|---|---|
| Level | Specifies the attribute set through the Level property. |
| LeftIndent | Specifies the attribute set through the LeftIndent property. |
| FormatCharacter | Specifies the attribute set through the FormatCharacter property. |
| NumberFormat | Specifies the attribute set through the NumberFormat property. |
| FirstNumber | Specifies the attribute set through the FirstNumber property. |
| CharBeforeNumber | Specifies the attribute set through the CharBeforeNumber property. |
| CharAfterNumber | Specifies the attribute set through the CharAfterNumber property. |
| RestartNumbering | Specifies the attribute set through the RestartNumbering property. |
| BulletCharacter | Specifies the attribute set through the BulletCharacter property. |
| BulletSize | Specifies the attribute set through the BulletSize property. |
| HangingIndent | Specifies the attribute set through the HangingIndent property. |
| Type | Specifies the attribute set through the Type property. |
| TextBeforeNumber | Specifies the attribute set through the TextBeforeNumber property. |
| TextAfterNumber | Specifies the attribute set through the TextAfterNumber property. |
| FontName | Specifies the attribute set through the FontName property. |
| All | Specifies all attributes of the ListFormat. |
Examples
The following example uses TXTextControl.Listformat.Attribute.Level (specifies the attribute set through the Level property.) in a document-editing workflow.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
TXTextControl.selection.isCommonListFormatValueSelected(
TXTextControl.Listformat.Attribute.Level,
function() {
console.log("is common list format value selected completed.");
},
onTxError
);