FrameLineColor 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 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; }Public Property FrameLineColor As Color?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.");
}textControl.Text = "Project summary"
textControl.InputPosition = New InputPosition(textControl.Text.Length)
Dim inputFormat As InputFormat = textControl.InputFormat
inputFormat.FrameLineColor = System.Drawing.Color.LightSteelBlue
If inputFormat.FrameLineColor IsNot Nothing Then
Console.WriteLine("Input Format: Frame Line Color is available.")
End IfRemarks
The property returns null when the text selection contains multiple frame lines with mixed colors.