Share via


RibbonToggleButton.Description Property (2007 System)

Gets or sets the text that appears on this RibbonToggleButton control in a menu.

Namespace:  Microsoft.Office.Tools.Ribbon
Assembly:  Microsoft.Office.Tools.Common.v9.0 (in Microsoft.Office.Tools.Common.v9.0.dll)

Syntax

'Declaration
Public Property Description As String
'Usage
Dim instance As RibbonToggleButton 
Dim value As String 

value = instance.Description

instance.Description = value
public string Description { get; set; }
public:
property String^ Description {
    String^ get ();
    void set (String^ value);
}
public function get Description () : String 
public function set Description (value : String)

Property Value

Type: System.String
A String that represents the text on the control.

Remarks

The Description appears when RibbonToggleButton is nested in another menu, and the ItemSize property of the parent menu is set to Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeLarge. If the ItemSize is set to Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeRegular, the description does not appear.

This property can be changed at run time.

.NET Framework Security

See Also

Reference

RibbonToggleButton Class

RibbonToggleButton Members

Microsoft.Office.Tools.Ribbon Namespace

Other Resources

Ribbon Object Model Overview