TX Text Control .NET for Windows Forms

BorderColor Property

Property|Introduced in 30.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 a text frame's border line.

Syntax

public Color BorderColor { get; set; }

Examples

The following example applies bold formatting through the text frame's selection by using TextFrame.BorderColor.

Selection formattedSelection = textFrame.Selection;
formattedSelection.Bold = true;
textFrame.Selection = formattedSelection;

textFrame.BorderColor = System.Drawing.Color.LightSteelBlue;
Console.WriteLine($"Border Color used by Text Frame: {textFrame.BorderColor}");