TX Text Control .NET for Windows Forms

RightLineColor Property

Property|Introduced in 17.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets or sets the color of the right border line.

Syntax

public Color RightLineColor { get; set; }

Examples

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

PageBorder 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 method can be used to check for mixed attributes.