UIElement.AccessKey 屬性

定義

取得或設定這個專案的便捷鍵 (助憶鍵) 。

public:
 property Platform::String ^ AccessKey { Platform::String ^ get(); void set(Platform::String ^ value); };
winrt::hstring AccessKey();

void AccessKey(winrt::hstring value);
public string AccessKey { get; set; }
var string = uIElement.accessKey;
uIElement.accessKey = string;
Public Property AccessKey As String

屬性值

String

Platform::String

winrt::hstring

這個專案的便捷鍵 (助憶鍵) 。

備註

設定此屬性可引發 AccessKeyDisplayRequested 事件。

如果未設定 AutomationProperties.AccessKey 附加屬性,則自動化架構會改用此屬性。 使用使用者語言,此值會當做不區分大小寫的值使用。 它會當做文字使用,因此,如果輸入法編輯器 (輸入法) 使用中,則會使用撰寫的文字。

適用於

另請參閱