IExtensionAccelerators Interface

Provides access to a method that creates extension accelerators.

Description

IExtensionAccelerators is implemented by extensions to define keyboard accelerators. This interface is not normally called from client code

When To Use

If you want any of the commands in your extension to have keyboard accelerators associated with them, your extension needs to implement IExtensionAccelerators. In your class module for your extension you would implement both IExtensionand IExtensionAccelerators.

Members

Name Description
Method CreateAccelerators Called to create the keyboard accelerators for this extension.

IExtensionAccelerators.CreateAccelerators Method

Called to create the keyboard accelerators for this extension.

Public Sub CreateAccelerators ( _
)
public void CreateAccelerators (
);

Remarks

The CreateAccelerators method creates the accelerators for the extension. This method is called when the accelerator table is created during application startup, when a new document is created, or when a document is opened.

When you use the CreateAccelerators method to assign an accelerator to one of the commands in your extension, you should check to make sure that no other command is currently using the key combination that you want to use.

Classes that implement IExtensionAccelerators

Classes Description

Remarks

The CreateAcceleratorsmethod creates the accelerators for the extension. This method is called when the accelerator table is created during application startup, when a new document is created, or when a document is opened.

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.