TX Text Control .NET for Windows Forms

FrameLineColor Property

Property|Introduced in 24.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 used to display the color of frame lines at the current text input position. If text is selected, the property specifies the color of frame lines used in the whole selected text. A frame line color can be set for table cells and paragraphs.

Syntax

public Color? FrameLineColor { get; set; }

Examples

The following example changes the formatting applied to text entered at the end of a document by using InputFormat.FrameLineColor.

textControl.Text = "Project summary";
textControl.InputPosition = new InputPosition(textControl.Text.Length);
InputFormat inputFormat = textControl.InputFormat;

inputFormat.FrameLineColor = System.Drawing.Color.LightSteelBlue;
if (inputFormat.FrameLineColor != null)
{
    Console.WriteLine("Input Format: Frame Line Color is available.");
}

Remarks

The property returns null when the text selection contains multiple frame lines with mixed colors.