編輯

共用方式為


KeysBoundTo Interface

Definition

A collection of KeyBinding objects assigned to a command, style, macro, or other item in the current context.

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

Remarks

Use the KeysBoundTo[WdKeyCategory, String, Object] property to return the KeysBoundTo collection.

Properties

Application

Returns a Application object that represents the Microsoft Word application.

Command

Returns the command assigned to the specified key combination.

CommandParameter

Returns the command parameter assigned to the specified shortcut key.

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.

KeyCategory

Returns the type of item assigned to the specified key binding.

Parent

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

Methods

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