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) 

事件类型

适用于

另请参阅