TX Text Control .NET for Windows Forms

RibbonLabel Class

Class|Introduced in 24.0
Namespace
TXTextControl.Windows.Forms.Ribbon
Package
TXTextControl.TextControl.WinForms.SDK from the private NuGet feed or Text Control Offline Packages
Assembly
TXTextControl.Windows.Forms.dll
Install
dotnet add package TXTextControl.TextControl.WinForms.SDK .NET 8 and later. For .NET Framework, reference TXTextControl.Windows.Forms.dll from the setup.
Inherits
  1. Control
  2. RibbonLabel

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 : Control

Examples

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;

Members

Constructors

ConstructorDescription
RibbonLabelInitializes a new instance of the RibbonLabel class.

Properties

PropertyDescription
DefaultBackColorNot described in the reference. public Color DefaultBackColor { get; }
EnabledNot described in the reference. public bool Enabled { get; set; }
ParentCollectionGets the RibbonItemCollection that contains this RibbonLabel.
SmallIconGets or sets a 16x16 1/96 inch icon for this RibbonLabel. If no icon is set, only the RibbonLabel's text is displayed.
TextOverridden. Gets or sets the RibbonLabel's text. If no text is set, only the RibbonLabel's icon is displayed.
ToolTipGets an object of type RibbonToolTip that displays text when the mouse pointer hovers over the item.
VisibleNot described in the reference. public bool Visible { get; set; }