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:

MethodDescriptionVersion Introduced
AboutBoxDisplays the control's about box.3.2
AddControlsAdds new controls to existing groups and other control containers.3.2
AddGroupsAdds new groups to existing tabs.3.2
AddTabsAdds new tabs to the control.3.2
ClearRemoves all tabs, controls, commands, and backstage elements.4.0.2
DisableCommandsDisables all controls bound to the given list of commands.4.0.1
EmbedWindowEmbeds a given window into a backstage page.3.2
EnableCommandsEnables all controls bound to the given list of commands.4.0.1
HideCommandsHides all controls bound to the given list of commands.4.0.1
InitInitializes the ribbon in a single call with XML.3.2
LayoutChildControlTells the Ribbon control where to size and position a child control on the form.4.2.2
RemoveControlsRemoves existing controls.3.2
RemoveGroupsRemoves existing groups.3.2
RemoveTabsRemoves existing tabs.3.2
ShowCommandContextMenuDisplays a context menu at the given mouse location using the current ribbon theme.4.0.2
  • No labels