Share via


_Global.FindKey Property

Returns a KeyBinding object that represents the specified key combination.

Namespace:  Microsoft.Office.Interop.Word
Assembly:  Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)

Syntax

'Declaration
ReadOnly Property FindKey ( _
    KeyCode As Integer, _
    ByRef KeyCode2 As Object _
) As KeyBinding
    Get
'Usage
Dim instance As _Global
Dim KeyCode As Integer
Dim KeyCode2 As Object
Dim value As KeyBinding

value = instance.FindKey(KeyCode, KeyCode2)
KeyBinding this[
    int KeyCode,
    ref Object KeyCode2
] { get; }

Parameters

  • KeyCode
    Type: System.Int32
    Required Integer. A key you specify by using one of the WdKey constants.
  • KeyCode2
    Type: System.Object%
    Optional Object. A second key you specify by using one of the WdKey constants.

Property Value

Type: Microsoft.Office.Interop.Word.KeyBinding

Remarks

You can use the BuildKeyCode method to create the KeyCode or KeyCode2 argument.

See Also

Reference

_Global Interface

_Global Members

Microsoft.Office.Interop.Word Namespace