RibbonButton.Label Property
Gets or sets the text that is displayed on the button.
Namespace: Microsoft.Office.Tools.Ribbon
Assembly: Microsoft.Office.Tools.Common (in Microsoft.Office.Tools.Common.dll)
Syntax
'Declaration
Property Label As String
string Label { get; set; }
Property Value
Type: System.String
A string that represents the text that is displayed on the button.
Remarks
To hide the label, set ShowLabel to false.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Office.Tools.Ribbon Namespace