Javascript: PageMargins.Attribute Enumeration
Description
Determines a certain page margins attribute.
Members
| Member | Description |
|---|---|
| Left | Specifies the attribute set through the Left property. |
| Top | Specifies the attribute set through the Top property. |
| Right | Specifies the attribute set through the Right property. |
| Bottom | Specifies the attribute set through the Bottom property. |
| All | Specifies 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
);