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 class TextControlColors
Public Class TextControlColors

Introduced: 16.0.

Examples

The following example shows the WPF.TextControlColors class with its different color properties. In this example, the DesktopColor and the TextColor properties have been used.

TXTextControl.WPF.TextControlColors colors = new TXTextControl.WPF.TextControlColors(); 

   colors.DesktopColor = System.Windows.Media.Colors.White;
   colors.TextColor    = System.Windows.Media.Colors.Black;
// other 6 properties
// colors.DarkShadowColor    = System.Windows.Media.Colors.(Value)
// colors.LightShadowColor   = System.Windows.Media.Colors.(Value)
// colors.PageBackColor      = System.Windows.Media.Colors.(Value)
// colors.TextBackColor      = System.Windows.Media.Colors.(Value)
// colors.HeaderFooterLabelColor = System.Windows.Media.Colors.(Value)
// colors.HeaderFooterLineColor  = System.Windows.Media.Colors.(Value)
Dim colors As TXTextControl.WPF.TextControlColors = New TXTextControl.WPF.TextControlColors()

  colors.DesktopColor = System.Windows.Media.Colors.White
  colors.TextColor    = System.Windows.Media.Colors.Black

' other 6 properties
' colors.DarkShadowColor    = System.Windows.Media.Colors.(Value)
' colors.LightShadowColor   = System.Windows.Media.Colors.(Value)
' colors.PageBackColor      = System.Windows.Media.Colors.(Value)
' colors.TextBackColor      = System.Windows.Media.Colors.(Value)
' colors.HeaderFooterLabelColor = System.Windows.Media.Colors.(Value)
' colors.HeaderFooterLineColor  = System.Windows.Media.Colors.(Value)

Constructors

Constructor Description
TextControlColors Initializes a new instance of the WPF.TextControlColors class.

Properties

Property Description
ActiveFormFieldColor Gets or sets the highlight color of a form field containing the current text input position.
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.
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.