TX Text Control .NET Server

Colors Class

Class|Introduced in 21.0
Namespace
TXTextControl.ServerVisualisation
Package
TXTextControl.TextControl.Core.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXTextControl.Server.Core.dll
Install
dotnet add package TXTextControl.TextControl.Core.SDK .NET 8 and later. For .NET Framework, reference TXTextControl.Server.dll from the setup.
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.Server.dll
Inherits
  1. ColorBase
  2. RulerBarViewGenerator.Colors

Description

The ServerVisualization.RulerBarViewGenerator.Colors class gets, sets or resets the display colors of a ServerVisualization.RulerBarViewGenerator component. 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 RulerBarViewGenerator.Colors : ColorBase

Examples

The following example creates a Colors instance and configures its fore color setting for a document workflow.

TXTextControl.ServerVisualisation.RulerBarViewGenerator.Colors colors = new();
colors.ForeColor = System.Drawing.Color.LightSteelBlue;

Members

Constructors

ConstructorDescription
ColorsInitializes a new instance of the RulerBarViewGenerator.Colors class. After creating the object with this constuctor, individual colors can be set. If the Colors object is assigned to the 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.

Methods

MethodDescription
ResetBackColorResets the ruler bar's BackColor to its system dependent default value.
ResetForeColorResets the ruler bar's ForeColor to its system dependent default value.
ResetGradientBackColorResets the ruler bar's GradientBackColor to its system dependent default value.
ResetRulerColorResets the ruler bar's RulerColor to its system dependent default value.
ResetSeparatorColorDarkResets the ruler bar's SeparatorColorDark to its system dependent default value.
ResetSeparatorColorLightResets the ruler bar's SeparatorColorLight to its system dependent default value.