PageMargins Object
Description
Represents the page margins of a document or document section. The measure depends on the page's unit.
Syntax
PageMarginsExamples
The following example demonstrates PageMargins in a practical document-editing workflow. It represents the page margins of a document or document section. The measure depends on the page's unit.
function onTxError(error) {
console.error("TX Text Control error:", error.msg);
error.handled = true;
}
TXTextControl.pageMargins.getBottom(
function(result) {
console.log("get bottom result:", result);
},
onTxError
);Members
Methods
| Method | Description |
|---|---|
| getBottom | Gets the bottom margin of a TX Text Control document or document section. |
| getLeft | Gets the left margin of a TX Text Control document or document section. |
| getRight | Gets the right margin of a TX Text Control document or document section. |
| getTop | Gets the top margin of a TX Text Control document or document section. |
| setBottom | Sets the bottom margin of a TX Text Control document or document section. |
| setLeft | Sets the left margin of a TX Text Control document or document section. |
| setRight | Sets the right margin of a TX Text Control document or document section. |
| setTop | Sets the top margin of a TX Text Control document or document section. |
Enumerations
| Enumeration | Description |
|---|---|
| Attribute | Determines a certain page margins attribute. |