Javascript: ParagraphFormat.Attribute Enumeration
Description
Determines a certain paragraph format attribute.
Members
| Member | Description |
|---|---|
| Alignment | Specifies the attribute set through the Alignment property. |
| LeftIndent | Specifies the attribute set through the LeftIndent property. |
| RightIndent | Specifies the attribute set through the RightIndent property. |
| TopDistance | Specifies the attribute set through the TopDistance property. |
| BottomDistance | Specifies the attribute set through the BottomDistance property. |
| LineSpacing | Specifies the attribute set through the LineSpacing property. |
| AbsoluteLineSpacing | Specifies the attribute set through the AbsoluteLineSpacing property. |
| TabPositions | Specifies the attribute set through the TabPositions property. |
| TabTypes | Specifies the attribute set through the TabTypes property. |
| Frame | Specifies the attribute set through the Frame property. |
| FrameStyle | Specifies the attribute set through the FrameStyle property. |
| FrameLineWidth | Specifies the attribute set through the FrameLineWidth property. |
| FrameDistance | Specifies the attribute set through the FrameDistance property. |
| HangingIndent | Specifies the attribute set through the HangingIndent property. |
| KeepLinesTogether | Specifies the attribute set through the KeepLinesTogether property. |
| KeepWithNext | Specifies the attribute set through the KeepWithNext property. |
| PageBreakBefore | Specifies the attribute set through the PageBreakBefore property. |
| WidowOrphanLines | Specifies the attribute set through the WidowOrphanLines property. |
| Direction | Specifies the attribute set through the Direction property. |
| Justification | Specifies the attribute set through the Justification property. |
| BackColor | Specifies the attribute set through the BackColor property. |
| FrameLineColor | Specifies the attribute set through the FrameLineColor property. |
| All | Specifies all attributes of the ParagraphFormat. |
Examples
The following example uses TXTextControl.Paragraphformat.Attribute.Alignment (specifies the attribute set through the Alignment property.) in a document-editing workflow.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
TXTextControl.selection.isCommonPargraphFormatValueSelected(
TXTextControl.Paragraphformat.Attribute.Alignment,
function() {
console.log("is common pargraph format value selected completed.");
},
onTxError
);