共用方式為


TextElement.AccessKeyInvoked 事件

定義

發生于使用者完成存取金鑰序列以通知專案應該叫用存取金鑰動作時。

// Register
event_token AccessKeyInvoked(TypedEventHandler<TextElement, AccessKeyInvokedEventArgs const&> const& handler) const;

// Revoke with event_token
void AccessKeyInvoked(event_token const* cookie) const;

// Revoke with event_revoker
TextElement::AccessKeyInvoked_revoker AccessKeyInvoked(auto_revoke_t, TypedEventHandler<TextElement, AccessKeyInvokedEventArgs const&> const& handler) const;
public event TypedEventHandler<TextElement,AccessKeyInvokedEventArgs> AccessKeyInvoked;
function onAccessKeyInvoked(eventArgs) { /* Your code */ }
textElement.addEventListener("accesskeyinvoked", onAccessKeyInvoked);
textElement.removeEventListener("accesskeyinvoked", onAccessKeyInvoked);
- or -
textElement.onaccesskeyinvoked = onAccessKeyInvoked;
Public Custom Event AccessKeyInvoked As TypedEventHandler(Of TextElement, AccessKeyInvokedEventArgs) 

事件類型

適用於

另請參閱