AccessibleObject.IAccessible.get_accKeyboardShortcut(Object) AccessibleObject.IAccessible.get_accKeyboardShortcut(Object) AccessibleObject.IAccessible.get_accKeyboardShortcut(Object) Method

定义

检索指定对象的键盘快捷方式或访问密钥。Retrieves the specified object's keyboard shortcut or access key.

 virtual System::String ^ Accessibility.IAccessible.get_accKeyboardShortcut(System::Object ^ childID) = Accessibility::IAccessible::get_accKeyboardShortcut;
string IAccessible.get_accKeyboardShortcut (object childID);
Function get_accKeyboardShortcut (childID As Object) As String Implements IAccessible.get_accKeyboardShortcut

参数

childID
Object Object Object

要为其获取键盘快捷方式的辅助性对象的 ID 号。The ID number of the accessible object for which to get a keyboard shortcut. 该参数为 0,则选择该对象;或者,如果该参数为子级 ID,则选择该对象的一个子对象。This parameter is 0 to select the object, or a child ID to select one of the object's child objects.

返回

本地化字符串标识键盘快捷方式或 null(如果键盘快捷方式与指定对象相关联)。A localized string that identifies the keyboard shortcut, or null if no keyboard shortcut is associated with the specified object.

适用于