BorderColor Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets or sets the color of a text frame's border line.
Syntax
public Color BorderColor { get; set; }Public Property BorderColor As ColorExamples
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}");Dim formattedSelection As Selection = textFrame.Selection
formattedSelection.Bold = True
textFrame.Selection = formattedSelection
textFrame.BorderColor = System.Drawing.Color.LightSteelBlue
Console.WriteLine($"Border Color used by Text Frame: {textFrame.BorderColor}")