# RulerBarViewGenerator.Colors Class

> 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.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Class
- **Introduced:** 21.0
- **Namespace:** `TXTextControl.ServerVisualisation`
- **Package:** `TXTextControl.TextControl.Core.SDK` (assembly `TXTextControl.Server.Core.dll`, from the private NuGet feed or Text Control Offline Packages)
- **Package:** `TXTextControl.TextControl.ASP.SDK` (assembly `TXTextControl.Server.dll`, from the private NuGet feed or Text Control Offline Packages)
- **.NET Framework:** reference `TXTextControl.Server.dll` from the setup
- **Inherits:** `TXTextControl.ServerVisualisation.ColorBase`
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.ServerVisualization > RulerBarViewGenerator.Colors Class
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/rulerbarviewgenerator-colors/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/rulerbarviewgenerator-colors/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/rulerbarviewgenerator-colors/llms-full.txt

---

## On This Page

- [Description](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/rulerbarviewgenerator-colors/#description)
- [Syntax](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/rulerbarviewgenerator-colors/#syntax)
- [Examples](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/rulerbarviewgenerator-colors/#examples)
- [Members](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/rulerbarviewgenerator-colors/#members)

---

## In This Section

- [RulerBarViewGenerator.Colors.BackColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/rulerbarviewgenerator-colors/backcolor-property/llms.txt): Gets or sets the background color at the left or top edge of the ruler bar.
- [RulerBarViewGenerator.Colors Constructor](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/rulerbarviewgenerator-colors/constructor/llms.txt): Initializes 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.
- [RulerBarViewGenerator.Colors.ForeColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/rulerbarviewgenerator-colors/forecolor-property/llms.txt): Gets or sets the color used for the numbers of the ruler.
- [RulerBarViewGenerator.Colors.GradientBackColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/rulerbarviewgenerator-colors/gradientbackcolor-property/llms.txt): Gets or sets the background color at the right or bottom edge of the ruler bar.
- [RulerBarViewGenerator.Colors.ResetBackColor Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/rulerbarviewgenerator-colors/resetbackcolor-method/llms.txt): Resets the ruler bar's BackColor to its system dependent default value.
- [RulerBarViewGenerator.Colors.ResetForeColor Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/rulerbarviewgenerator-colors/resetforecolor-method/llms.txt): Resets the ruler bar's ForeColor to its system dependent default value.
- [RulerBarViewGenerator.Colors.ResetGradientBackColor Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/rulerbarviewgenerator-colors/resetgradientbackcolor-method/llms.txt): Resets the ruler bar's GradientBackColor to its system dependent default value.
- [RulerBarViewGenerator.Colors.ResetRulerColor Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/rulerbarviewgenerator-colors/resetrulercolor-method/llms.txt): Resets the ruler bar's RulerColor to its system dependent default value.
- [RulerBarViewGenerator.Colors.ResetSeparatorColorDark Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/rulerbarviewgenerator-colors/resetseparatorcolordark-method/llms.txt): Resets the ruler bar's SeparatorColorDark to its system dependent default value.
- [RulerBarViewGenerator.Colors.ResetSeparatorColorLight Method](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/rulerbarviewgenerator-colors/resetseparatorcolorlight-method/llms.txt): Resets the ruler bar's SeparatorColorLight to its system dependent default value.
- [RulerBarViewGenerator.Colors.RulerColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/rulerbarviewgenerator-colors/rulercolor-property/llms.txt): Gets or sets the color of the ruler.
- [RulerBarViewGenerator.Colors.SeparatorColorDark Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/rulerbarviewgenerator-colors/separatorcolordark-property/llms.txt): Gets or sets the color of dark separators.
- [RulerBarViewGenerator.Colors.SeparatorColorLight Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/rulerbarviewgenerator-colors/separatorcolorlight-property/llms.txt): Gets or sets the color of light separators.

---

## Nearby

- **Previous:** [RulerBarViewGenerator.BorderStyle Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/rulerbarviewgenerator/borderstyle-property/llms.txt)
- **Next:** [RulerBarViewGenerator.Colors.BackColor Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-servervisualization/rulerbarviewgenerator-colors/backcolor-property/llms.txt)
