# Javascript: PageMargins.Attribute Enumeration

> Determines a certain page margins attribute.

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

---

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

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

---

## Nearby

- **Previous:** [PageMargins Object](https://docs.textcontrol.com/ds-server/reference/javascript/pagemargins/llms-full.txt)
- **Next:** [Javascript: PageMargins.getBottom Method](https://docs.textcontrol.com/ds-server/reference/javascript/pagemargins/getbottom-method/llms-full.txt)
