RibbonLabel Constructor (2007 System)
Initializes a new instance of the RibbonLabel class.
Namespace: Microsoft.Office.Tools.Ribbon
Assembly: Microsoft.Office.Tools.Common.v9.0 (in Microsoft.Office.Tools.Common.v9.0.dll)
Syntax
'Declaration
Public Sub New
'Usage
Dim instance As New RibbonLabel()
public RibbonLabel()
public:
RibbonLabel()
public function RibbonLabel()
Remarks
Visual Studio Tools for Office creates an instance of this class for you when you drag a Label from the Office Ribbon Controls tab of the Toolbox onto the Ribbon Designer.
You can use this constructor to add a label to a group or box at run time, but only before the Ribbon is loaded. Create an instance of the RibbonLabel class, and then add the new RibbonLabel to the Items collection of a group or the Items collection of a box. For more information, see Ribbon Object Model Overview.
.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