TX Text Control .NET for WPF

FrameLineColor Property

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

Description

Gets or sets the color used for the frame lines of a paragraph.

Syntax

public Color FrameLineColor { get; set; }

Examples

The following example applies paragraph layout to selected report text by using ParagraphFormat.FrameLineColor.

textControl.Text = "First item\nSecond item\nThird item";
textControl.Select(0, textControl.Text.Length);
ParagraphFormat paragraphFormat = textControl.Selection.ParagraphFormat;

paragraphFormat.FrameLineColor = System.Drawing.Color.LightSteelBlue;
Console.WriteLine($"Frame Line Color used by Paragraph Format: {paragraphFormat.FrameLineColor}");

textControl.Selection.ParagraphFormat = paragraphFormat;

Remarks

The property's default value is SystemColors.WindowText.

The property returns its default value when the text selection contains multiple paragraphs with mixed frame colors. The Selection.IsCommonValueSelected method can be used to check for mixed attributes.