RibbonLabel Class
- Namespace
TXTextControl.Windows. Forms. Ribbon
- Package
TXTextControl.from the private NuGet feed or Text Control Offline PackagesTextControl. WinForms. SDK
- Assembly
TXTextControl.Windows. Forms. dll
- Install
dotnet add package TXTextControl..NET 8 and later. For .NET Framework, referenceTextControl. WinForms. SDK TXTextControl.from the setup.Windows. Forms. dll
- Inherits
- Control
- Ribbon
Label
Description
The RibbonLabel class represents a label which is inherited from the System.Windows.Forms.Control class. The following describes only the properties, methods and events defined through the RibbonLabel class. For a list of properties, methods and events inherited from the System.Windows.Forms.Control class see the .NET Framework reference.
Syntax
public class RibbonLabel : ControlPublic Class RibbonLabel
Inherits ControlExamples
The following example creates a Ribbon Label instance and configures its enabled setting for a document workflow.
using TXTextControl.Windows.Forms.Ribbon.RibbonLabel ribbonLabel = new();
ribbonLabel.Enabled = true;Dim ribbonLabel As New TXTextControl.Windows.Forms.Ribbon.RibbonLabel()
ribbonLabel.Enabled = TrueMembers
Constructors
| Constructor | Description |
|---|---|
| RibbonLabel | Initializes a new instance of the RibbonLabel class. |
Properties
| Property | Description |
|---|---|
| DefaultBackColor | Not described in the reference. public Color DefaultBackColor { get; } |
| Enabled | Not described in the reference. public bool Enabled { get; set; } |
| ParentCollection | Gets the RibbonItemCollection that contains this RibbonLabel. |
| SmallIcon | Gets or sets a 16x16 1/96 inch icon for this RibbonLabel. If no icon is set, only the RibbonLabel's text is displayed. |
| Text | Overridden. Gets or sets the RibbonLabel's text. If no text is set, only the RibbonLabel's icon is displayed. |
| ToolTip | Gets an object of type RibbonToolTip that displays text when the mouse pointer hovers over the item. |
| Visible | Not described in the reference. public bool Visible { get; set; } |