In This Article

RibbonCommandUIManager Class

Manages the link between regular commands (that don't inherit RibbonCommand) and their IRibbonCommandUIProvider counterparts.

public static class RibbonCommandUIManager
Inheritance:
object object

Methods

GetUIProvider(ICommand)

Returns the IRibbonCommandUIProvider for the specified ICommand, if one is registered.

public static IRibbonCommandUIProvider GetUIProvider(ICommand command)
Parameter Type Description
command ICommand

The ICommand to examine.

Returns

IRibbonCommandUIProvider:

The IRibbonCommandUIProvider for the specified ICommand, if one is registered.

Register(ICommand, IRibbonCommandUIProvider)

Registers a IRibbonCommandUIProvider to be used with the specified ICommand.

public static void Register(ICommand command, IRibbonCommandUIProvider uiProvider)
Parameter Type Description
command ICommand

The ICommand that will receive the UI provider.

uiProvider IRibbonCommandUIProvider

The IRibbonCommandUIProvider that will apply to the command.

Unregister(ICommand)

Unregisters a UI provider data for the specified ICommand.

public static void Unregister(ICommand command)
Parameter Type Description
command ICommand

The ICommand whose registration data should be removed.

UnregisterAll()

Unregisters all UI provider data for all ICommand objects.

public static void UnregisterAll()

Inherited Members