Upravit

Sdílet prostřednictvím


KeyBindings Interface

Definition

A collection of KeyBinding objects that represent the custom key assignments in the current context. Custom key assignments are made in the Customize Keyboard dialog box.

public interface class KeyBindings : System::Collections::IEnumerable
[System.Runtime.InteropServices.Guid("00020996-0000-0000-C000-000000000046")]
public interface KeyBindings : System.Collections.IEnumerable
type KeyBindings = interface
    interface IEnumerable
Public Interface KeyBindings
Implements IEnumerable
Attributes
Implements

Remarks

Use the KeyBindings property to return the KeyBindings collection.

Use the Add(WdKeyCategory, String, Int32, Object, Object) method to add a KeyBinding object to the KeyBindings collection.

Use KeyBindings(index), where index is the index number, to return a single KeyBinding object.

Properties

Application

Returns a Application object that represents the Microsoft Word application.

Context

Returns an object that represents the storage location of the specified key binding. This property can return a Document, Template, or Application object.

Count

Returns the number of items in the specified collection.

Creator

Returns a 32-bit integer that indicates the application in which the specified object was created.

Item[Int32]

Returns an individual object in a collection.

Parent

Returns an object that represents the parent object of the specified object.

Methods

Add(WdKeyCategory, String, Int32, Object, Object)

Returns a KeyBinding object that represents a new shortcut key for a macro, built-in command, font, AutoText entry, style, or symbol.

ClearAll()

Clears all the customized key assignments and restores the original Microsoft Word shortcut key assignments.

GetEnumerator()
Key(Int32, Object)

Returns a KeyBinding object that represents the specified custom key combination. If the key combination doesn't exist, this method returns Nothing.

Applies to