Colors Constructor
- Namespace
TXTextControl.Windows. Forms. Ribbon
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. dll
Description
Initializes a new instance of the Ribbon.Colors class. After creating the object with this constuctor, individual colors can be set. If the Colors object is assigned to the Windows.Forms.Ribbon.Ribbon.DisplayColors property, non-set colors are reset to their system dependent default values.
Syntax
public Colors();Public Sub New()Examples
The following example creates a Colors instance and configures its tab color setting for a document workflow.
TXTextControl.Windows.Forms.Ribbon.Ribbon.Colors colors = new();
colors.TabColor = System.Drawing.Color.LightSteelBlue;Dim colors As New TXTextControl.Windows.Forms.Ribbon.Ribbon.Colors()
colors.TabColor = System.Drawing.Color.LightSteelBlue