RibbonLabel

Represents a Label control in the SharePoint Server Ribbon.
SharePoint 2010 Ribbon ComboBox

Inheritance Hierarchy


Assembly: QASPRibbon.dll
Namespace: QASPRibbon.Controls

Properties

Property Type Description
Id String A string that identifies the label, such as "RibbonControl". (Inherited from RibbonElement)
Title String A string value representing the label's text. (Inherited from RibbonElement)
Visible Boolean A value that indicates whether a label control is rendered on the ribbon. (Inherited from RibbonVisualControl)
Enabled Boolean A value that indicates whether a label control is enabled. (Inherited from RibbonVisualControl)
ToolTip RibbonToolTip The tooltip of the label. (Inherited from RibbonVisualControl)
ForId String The ID of the control that this control labels.

Constructors

public RibbonLabel()

public RibbonLabel(string id)

public RibbonLabel(string id, string title)

Example

The following example defines a label control with tooltip.
//ToolTip
var simpleLabelToolTip = new RibbonToolTip("ToolTip Title", "ToolTip Description");
//Label
var simpleLabel = new RibbonLabel("Label", "Label")
                    {
                        ToolTip = simpleLabelToolTip,
                        ForId = "TargetControl"
                    };

See also




Last edited Dec 19, 2012 at 3:03 PM by VitalyZhukov, version 3

Comments

No comments yet.