DS Server

Javascript: ParagraphFormat.Attribute Enumeration

Enumeration|Introduced in 28.0

Description

Determines a certain paragraph format attribute.

Members

MemberDescription
AlignmentSpecifies the attribute set through the Alignment property.
LeftIndentSpecifies the attribute set through the LeftIndent property.
RightIndentSpecifies the attribute set through the RightIndent property.
TopDistanceSpecifies the attribute set through the TopDistance property.
BottomDistanceSpecifies the attribute set through the BottomDistance property.
LineSpacingSpecifies the attribute set through the LineSpacing property.
AbsoluteLineSpacingSpecifies the attribute set through the AbsoluteLineSpacing property.
TabPositionsSpecifies the attribute set through the TabPositions property.
TabTypesSpecifies the attribute set through the TabTypes property.
FrameSpecifies the attribute set through the Frame property.
FrameStyleSpecifies the attribute set through the FrameStyle property.
FrameLineWidthSpecifies the attribute set through the FrameLineWidth property.
FrameDistanceSpecifies the attribute set through the FrameDistance property.
HangingIndentSpecifies the attribute set through the HangingIndent property.
KeepLinesTogetherSpecifies the attribute set through the KeepLinesTogether property.
KeepWithNextSpecifies the attribute set through the KeepWithNext property.
PageBreakBeforeSpecifies the attribute set through the PageBreakBefore property.
WidowOrphanLinesSpecifies the attribute set through the WidowOrphanLines property.
DirectionSpecifies the attribute set through the Direction property.
JustificationSpecifies the attribute set through the Justification property.
BackColorSpecifies the attribute set through the BackColor property.
FrameLineColorSpecifies the attribute set through the FrameLineColor property.
AllSpecifies 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
);