Javascript: PageBorder.Attribute Enumeration
Description
Determines a certain page border attribute.
Members
| Member | Description |
|---|---|
| LeftLineWidth | Specifies the attribute set through the LeftLineWidth property. |
| TopLineWidth | Specifies the attribute set through the TopLineWidth property. |
| RightLineWidth | Specifies the attribute set through the RightLineWidth property. |
| BottomLineWidth | Specifies the attribute set through the BottomLineWidth property. |
| LeftLineColor | Specifies the attribute set through the LeftLineColor property. |
| TopLineColor | Specifies the attribute set through the TopLineColor property. |
| RightLineColor | Specifies the attribute set through the RightLineColor property. |
| BottomLineColor | Specifies the attribute set through the BottomLineColor property. |
| LeftDistance | Specifies the attribute set through the LeftDistance property. |
| TopDistance | Specifies the attribute set through the TopDistance property. |
| RightDistance | Specifies the attribute set through the RightDistance property. |
| BottomDistance | Specifies the attribute set through the BottomDistance property. |
| MeasureFromText | Specifies the attribute set through the MeasureFromText property. |
| FirstPageOnly | Specifies the attribute set through the FirstPageOnly property. |
| OmitFirstPage | Specifies the attribute set through the OmitFirstPage property. |
| SurroundHeader | Specifies the attribute set through the SurroundHeader property. |
| SurroundFooter | Specifies the attribute set through the SurroundFooter property. |
| All | Specifies 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
);