Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns the key combination string for the specified keys (for example, CTRL+SHIFT+A).
Namespace: Microsoft.Office.Interop.Word
Assembly: Microsoft.Office.Interop.Word (in Microsoft.Office.Interop.Word.dll)
Syntax
'Declaration
Function KeyString ( _
KeyCode As Integer, _
ByRef KeyCode2 As Object _
) As String
'Usage
Dim instance As _Global
Dim KeyCode As Integer
Dim KeyCode2 As Object
Dim returnValue As String
returnValue = instance.KeyString(KeyCode, _
KeyCode2)
string KeyString(
int KeyCode,
ref Object KeyCode2
)
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.
Return Value
Type: System.String
Remarks
You can use the BuildKeyCode method to create the KeyCode or KeyCode2 argument.