# Javascript: PageBorder.Attribute Enumeration

> Determines a certain page border attribute.

- **Product:** DS Server
- **Section:** Reference
- **Kind:** Enumeration
- **Introduced:** 28.0
- **Path:** DS Server > Reference > JavaScript API > Javascript: PageBorder.Attribute Enumeration
- **753 words**
- **Web URL:** https://docs.textcontrol.com/ds-server/reference/javascript/pageborder/attribute-enumeration/
- **LLMs URL:** https://docs.textcontrol.com/ds-server/reference/javascript/pageborder/attribute-enumeration/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/ds-server/reference/javascript/pageborder/attribute-enumeration/llms-full.txt

---

### 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.

```javascript
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
);
```

---

## Nearby

- **Previous:** [PageBorder Object](https://docs.textcontrol.com/ds-server/reference/javascript/pageborder/llms-full.txt)
- **Next:** [Javascript: PageBorder.getBottomDistance Method](https://docs.textcontrol.com/ds-server/reference/javascript/pageborder/getbottomdistance-method/llms-full.txt)
