TX Text Control .NET for WPF

TextControlColors Class

Class|Introduced in 16.0
Namespace
TXTextControl.WPF
Package
TXTextControl.TextControl.WPF.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXTextControl.WPF.dll
Install
dotnet add package TXTextControl.TextControl.WPF.SDK .NET 8 and later. For .NET Framework, reference TXTextControl.WPF.dll from the setup.
Inherits
  1. ColorBase
  2. TextControlColors

Description

The WPF.TextControlColors class gets, sets or resets the display colors of a WPF.TextControl control. By default the display colors depend on sytem colors or a default value. With this class all colors can be individually designed.

Syntax

public sealed class TextControlColors : ColorBase

Examples

The following example creates a Text Control Colors instance for a document-processing operation. The created object is then available to the surrounding document workflow.

TXTextControl.WPF.TextControlColors textControlColors = new();
Console.WriteLine("Text Control Colors is ready for use.");

Members

Constructors

ConstructorDescription
TextControlColorsInitializes a new instance of the WPF.TextControlColors class. After creating the object with this constuctor, individual colors can be set. If the Colors object is assigned to the WPF.TextControl.DisplayColors property, non-set colors are reset to their default values.

Properties

PropertyDescription
ActiveFormFieldColorGets or sets the highlight color of a form field containing the current text input position. To suppress highlighting the active FormField the property value can be set to Colors.Transparent.
DarkShadowColorGets or sets the display color for the shadow at the right and the bottom edge of the pages.
DesktopColorGets or sets the display color for the area around the pages.
FormFieldColorGets or sets the highlight color of a form field. This color can be overwritten with the TextField.HighlightColor property. To suppress highlighting a FormField the property value can be set to Colors.Transparent.
HeaderFooterLabelColorGets or sets the display color for the label showing which header or footer is activated.
HeaderFooterLineColorGets or sets the display color for the dividing line between headers and footers and the main text.
LightShadowColorGets or sets the display color for the shadow at the left and the top edge of the pages.
PageBackColorGets or sets the display color for the page background.
TextBackColorGets or sets the background color for the text.
TextColorGets or sets the color for the text.