TX Text Control .NET Server

Javascript: PageSize.Attribute Enumeration

Enumeration|Introduced in 28.0

Description

Determines a certain page size attribute.

Members

MemberDescription
WidthSpecifies the attribute set through the Width property.
HeightSpecifies the attribute set through the Height property.
AllSpecifies all attributes of the PageSize.

Examples

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

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

TXTextControl.selection.isCommonPageSizeValueSelected(
    TXTextControl.Pagesize.Attribute.Width,
    function() {
        console.log("is common page size value selected completed.");
    },
    onTxError
);