Key property

Microsoft Visio Developer Reference

Key property

   Example   

Gets or sets the ASCII key code value for an accelerator.

Version added

4.0

Syntax

keyVal = object.Key
object.Key = keyVal

keyVal

Required Integer. The ASCII value of the key used by the accelerator.

object

Required. An expression that returns an AccelItem object.

Remarks

For a list of ASCII key code values, search for "Virtual-Key Codes" in the Microsoft Platform SDK on the Microsoft Developer Network (MSDN) Web site.