TX Text Control .NET for WPF

Colors Class

Class|Introduced in 16.0
Namespace
TXTextControl.WPF
Full name
TXTextControl.WPF.RulerBarColors
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. RulerBarColors

Description

The WPF.RulerBarColors class gets, sets or resets the display colors of a WPF.RulerBar control. By default the display colors depend on sytem colors. With this class all colors can be individually designed. The colors are only used when the ruler bar's BorderStyle property has been set to ColorScheme.

Syntax

public sealed class RulerBarColors : ColorBase

Examples

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

TXTextControl.WPF.RulerBarColors rulerBarColors = new();
Console.WriteLine("Ruler Bar Colors is ready for use.");

Members

Constructors

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

Properties

PropertyDescription
BackColorGets or sets the background color at the left or top edge of the ruler bar.
ForeColorGets or sets the color used for the numbers of the ruler.
GradientBackColorGets or sets the background color at the right or bottom edge of the ruler bar.
RulerColorGets or sets the color of the ruler.
SeparatorColorDarkGets or sets the color of dark separators.
SeparatorColorLightGets or sets the color of light separators.