OLE control methods provide convenient one-time operations to developers. Unlike properties, whose values are persistent over the life of a control, methods represent actions that a control can perform. Often, methods will change the values of other control properties, so be sure to read the Remarks section of each method carefully. The following methods apply to the SRP Ribbon Control:
Method | Description | Version Introduced |
---|---|---|
AboutBox | Displays the control's about box. | 3.2 |
AddControls | Adds new controls to existing groups and other control containers. | 3.2 |
AddGroups | Adds new groups to existing tabs. | 3.2 |
AddTabs | Adds new tabs to the control. | 3.2 |
Clear | Removes all tabs, controls, commands, and backstage elements. | 4.0.2 |
DisableCommands | Disables all controls bound to the given list of commands. | 4.0.1 |
EmbedWindow | Embeds a given window into a backstage page. | 3.2 |
EnableCommands | Enables all controls bound to the given list of commands. | 4.0.1 |
HideCommands | Hides all controls bound to the given list of commands. | 4.0.1 |
Init | Initializes the ribbon in a single call with XML. | 3.2 |
LayoutChildControl | Tells the Ribbon control where to size and position a child control on the form. | 4.2.2 |
RemoveControls | Removes existing controls. | 3.2 |
RemoveGroups | Removes existing groups. | 3.2 |
RemoveTabs | Removes existing tabs. | 3.2 |
ShowCommandContextMenu | Displays a context menu at the given mouse location using the current ribbon theme. | 4.0.2 |