TX Text Control .NET Server

Javascript: PageMargins.Attribute Enumeration

Enumeration|Introduced in 28.0

Description

Determines a certain page margins attribute.

Members

MemberDescription
LeftSpecifies the attribute set through the Left property.
TopSpecifies the attribute set through the Top property.
RightSpecifies the attribute set through the Right property.
BottomSpecifies the attribute set through the Bottom property.
AllSpecifies all attributes of the PageMargins.

Examples

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

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

TXTextControl.selection.isCommonPageMarginsValueSelected(
    TXTextControl.Pagemargins.Attribute.Left,
    function() {
        console.log("is common page margins value selected completed.");
    },
    onTxError
);