Colors Class
- Namespace
TXTextControl.WPF
- Full name
TXTextControl.WPF. RulerBarColors
- 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
- Ruler
Bar Colors
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 : ColorBasePublic NotInheritable Class RulerBarColors
Inherits ColorBaseExamples
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.");Dim rulerBarColors As New TXTextControl.WPF.RulerBarColors()
Console.WriteLine("Ruler Bar Colors is ready for use.")Members
Constructors
| Constructor | Description |
|---|---|
| RulerBarColors | Initializes 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
| Property | Description |
|---|---|
| BackColor | Gets or sets the background color at the left or top edge of the ruler bar. |
| ForeColor | Gets or sets the color used for the numbers of the ruler. |
| GradientBackColor | Gets or sets the background color at the right or bottom edge of the ruler bar. |
| RulerColor | Gets or sets the color of the ruler. |
| SeparatorColorDark | Gets or sets the color of dark separators. |
| SeparatorColorLight | Gets or sets the color of light separators. |