# PageBorder.Attribute Enumeration

> Determines a certain page border attribute. This enumeration is used with the Selection.IsCommonValueSelected method. It contains the following values:

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Enumeration
- **Introduced:** 17.0
- **Namespace:** `TXTextControl`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXTextControl.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.dll` from the setup
- **Path:** TX Text Control .NET Server > Reference > TXTextControl > PageBorder.Attribute Enumeration
- **1076 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/pageborder/attribute-enumeration/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/pageborder/attribute-enumeration/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/pageborder/attribute-enumeration/llms-full.txt

---

### Description

Determines a certain page border attribute. This enumeration is used with the [Selection.IsCommonValueSelected](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/selection/iscommonvalueselected-method/llms-full.txt) method. It contains the following values:

### Syntax

```csharp
public enum PageBorder.Attribute
```

```vbnet
Public Enum PageBorder.Attribute
```

### Members

| Member | Value | Description |
|---|---|---|
| BottomDistance | 2048 | Specifies the attribute set through the BottomDistance property. |
| BottomLineColor | 128 | Specifies the attribute set through the BottomLineColor property. |
| BottomLineWidth | 8 | Specifies the attribute set through the BottomLineWidth property. |
| FirstPageOnly | 8192 | Specifies the attribute set through the FirstPageOnly property. |
| LeftDistance | 256 | Specifies the attribute set through the LeftDistance property. |
| LeftLineColor | 16 | Specifies the attribute set through the LeftLineColor property. |
| LeftLineWidth | 1 | Specifies the attribute set through the LeftLineWidth property. |
| MeasureFromText | 4096 | Specifies the attribute set through the MeasureFromText property. |
| OmitFirstPage | 16384 | Specifies the attribute set through the OmitFirstPage property. |
| RightDistance | 1024 | Specifies the attribute set through the RightDistance property. |
| RightLineColor | 64 | Specifies the attribute set through the RightLineColor property. |
| RightLineWidth | 4 | Specifies the attribute set through the RightLineWidth property. |
| SurroundFooter | 65536 | Specifies the attribute set through the SurroundFooter property. |
| SurroundHeader | 32768 | Specifies the attribute set through the SurroundHeader property. |
| TopDistance | 512 | Specifies the attribute set through the TopDistance property. |
| TopLineColor | 32 | Specifies the attribute set through the TopLineColor property. |
| TopLineWidth | 2 | Specifies the attribute set through the TopLineWidth property. |
| All | 131071 | Not described in the reference. |

### Examples

The following example selects the Left Line Width value from the Attribute enumeration and uses it as a documented workflow choice.

```csharp
PageBorder.Attribute value = PageBorder.Attribute.LeftLineWidth;
Console.WriteLine($"Using Attribute: {value}");
```

```vbnet
Dim value As PageBorder.Attribute = PageBorder.Attribute.LeftLineWidth
Console.WriteLine($"Using Attribute: {value}")
```

---

## Nearby

- **Previous:** [PageBorder Class](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/pageborder/llms-full.txt)
- **Next:** [PageBorder.BottomDistance Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/pageborder/bottomdistance-property/llms-full.txt)
