TextControlColors Class
- Namespace
TXTextControl.WPF
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. WPF. SDK
- Assembly
TXTextControl.WPF. dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. WPF. SDK TXTextControl.from the setup.WPF. dll
- Inherits
- ColorBase
- Text
Control Colors
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 : ColorBasePublic NotInheritable Class TextControlColors
Inherits ColorBaseExamples
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.");Dim textControlColors As New TXTextControl.WPF.TextControlColors()
Console.WriteLine("Text Control Colors is ready for use.")Members
Constructors
| Constructor | Description |
|---|---|
| TextControlColors | Initializes 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
| Property | Description |
|---|---|
| ActiveFormFieldColor | Gets 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. |
| DarkShadowColor | Gets or sets the display color for the shadow at the right and the bottom edge of the pages. |
| DesktopColor | Gets or sets the display color for the area around the pages. |
| FormFieldColor | Gets 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. |
| HeaderFooterLabelColor | Gets or sets the display color for the label showing which header or footer is activated. |
| HeaderFooterLineColor | Gets or sets the display color for the dividing line between headers and footers and the main text. |
| LightShadowColor | Gets or sets the display color for the shadow at the left and the top edge of the pages. |
| PageBackColor | Gets or sets the display color for the page background. |
| TextBackColor | Gets or sets the background color for the text. |
| TextColor | Gets or sets the color for the text. |