DS Server

Javascript: PageBorder.Attribute Enumeration

Enumeration|Introduced in 28.0

Description

Determines a certain page border attribute.

Members

MemberDescription
LeftLineWidthSpecifies the attribute set through the LeftLineWidth property.
TopLineWidthSpecifies the attribute set through the TopLineWidth property.
RightLineWidthSpecifies the attribute set through the RightLineWidth property.
BottomLineWidthSpecifies the attribute set through the BottomLineWidth property.
LeftLineColorSpecifies the attribute set through the LeftLineColor property.
TopLineColorSpecifies the attribute set through the TopLineColor property.
RightLineColorSpecifies the attribute set through the RightLineColor property.
BottomLineColorSpecifies the attribute set through the BottomLineColor property.
LeftDistanceSpecifies the attribute set through the LeftDistance property.
TopDistanceSpecifies the attribute set through the TopDistance property.
RightDistanceSpecifies the attribute set through the RightDistance property.
BottomDistanceSpecifies the attribute set through the BottomDistance property.
MeasureFromTextSpecifies the attribute set through the MeasureFromText property.
FirstPageOnlySpecifies the attribute set through the FirstPageOnly property.
OmitFirstPageSpecifies the attribute set through the OmitFirstPage property.
SurroundHeaderSpecifies the attribute set through the SurroundHeader property.
SurroundFooterSpecifies the attribute set through the SurroundFooter property.
AllSpecifies all attributes of the PageSize.

Examples

The following example uses TXTextControl.Pageborder.Attribute.LeftLineWidth (specifies the attribute set through the LeftLineWidth property.) in a document-editing workflow.

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

TXTextControl.selection.isCommonPageBorderValueSelected(
    TXTextControl.Pageborder.Attribute.LeftLineWidth,
    function() {
        console.log("is common page border value selected completed.");
    },
    onTxError
);