Version

GetAcceleratorKey Method

Returns a string containing the accelerator key combinations for the automation element.
Syntax
'Declaration
 
Protected Overridable Function GetAcceleratorKey() As String
protected virtual string GetAcceleratorKey()

Return Value

A string containing the accelerator key combinations for the automation element.
Remarks

Accelerator key (also called shortcut key) combinations invoke an action. For example, CTRL+O is often used to invoke the Open file common dialog box. An automation element that has the accelerator key property may implement the Invoke control pattern for the action that is equivalent to the accelerator command.

The AcceleratorKey property has a variant type of VT_BSTR; the default value is an empty string.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also