# PageBorder.RightLineColor Property

> Gets or sets the color of the right border line.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **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.RightLineColor Property
- **457 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/pageborder/rightlinecolor-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/pageborder/rightlinecolor-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/pageborder/rightlinecolor-property/llms-full.txt

---

### Description

Gets or sets the color of the right border line.

### Syntax

```csharp
public Color RightLineColor { get; set; }
```

```vbnet
Public Property RightLineColor As Color
```

### Examples

The following example configures the page border of the first document section by using `PageBorder.RightLineColor`.

```csharp
PageBorder pageBorder = textControl.Sections[1].Format.PageBorder;

pageBorder.RightLineColor = System.Drawing.Color.LightSteelBlue;
Console.WriteLine($"Right Line Color used by Page Border: {pageBorder.RightLineColor}");
```

```vbnet
Dim pageBorder As PageBorder = textControl.Sections(1).Format.PageBorder

pageBorder.RightLineColor = System.Drawing.Color.LightSteelBlue
Console.WriteLine($"Right Line Color used by Page Border: {pageBorder.RightLineColor}")
```

### Remarks

The property's default value is the system color for text.

The property returns its default value when the text selection contains multiple sections with mixed setting. The [Selection.IsCommonValueSelected](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol/selection/iscommonvalueselected-method/llms-full.txt) method can be used to check for mixed attributes.

---

## Nearby

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