Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

OLE control methods provide convenient one-time operations to developers. Unlike properties, whose values are persistant 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 IntroducedPro Version Introduced
AboutBoxDisplays the control's about box.1.03.2
AddControlsAdds new controls to existing groups and other control containers.1.03.2
AddGroupsAdds new groups to existing tabs.1.03.2
AddTabsAdds new tabs to the control.1.03.2
ClearRemoves all tabs, controls, commands, and backstage elements. 4.0.2
DisableCommandsDisables all controls bound to the given list of commands.n/a4.0.1
EmbedWindowEmbeds a given window into a backstage page.1.03.2
EnableCommandsEnables all controls bound to the given list of commands.n/a4.0.1
HideCommandsHides all controls bound to the given list of commands.n/a4.0.1
InitInitializes the ribbon in a single call with XML.1.03.2
RemoveControlsRemoves existing controls.1.03.2
RemoveGroupsRemoves existing groups.1.03.2
RemoveTabsRemoves existing tabs.1.03.2