FrameFillColor 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 frame fill color at the current input position. If text is selected, the property specifies the fill color of the whole selected text. A background color can be set for table cells and paragraphs. If the fill color is transparent, a TextControl uses the control's background color.
Syntax
public Color? FrameFillColor { get; set; }Public Property FrameFillColor As Color?Examples
The following example changes the formatting applied to text entered at the end of a document by using InputFormat.FrameFillColor.
textControl.Text = "Project summary";
textControl.InputPosition = new InputPosition(textControl.Text.Length);
InputFormat inputFormat = textControl.InputFormat;
inputFormat.FrameFillColor = System.Drawing.Color.LightSteelBlue;
if (inputFormat.FrameFillColor != null)
{
Console.WriteLine("Input Format: Frame Fill Color is available.");
}textControl.Text = "Project summary"
textControl.InputPosition = New InputPosition(textControl.Text.Length)
Dim inputFormat As InputFormat = textControl.InputFormat
inputFormat.FrameFillColor = System.Drawing.Color.LightSteelBlue
If inputFormat.FrameFillColor IsNot Nothing Then
Console.WriteLine("Input Format: Frame Fill Color is available.")
End IfRemarks
The property returns null when the text selection contains multiple table cells or paragraphs with mixed colors.