RichEditBox.ContentLinkInvoked 事件

定義

發生于使用者互動啟用連結時。

// Register
event_token ContentLinkInvoked(TypedEventHandler<RichEditBox, ContentLinkInvokedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
RichEditBox::ContentLinkInvoked_revoker ContentLinkInvoked(auto_revoke_t, TypedEventHandler<RichEditBox, ContentLinkInvokedEventArgs const&> const& handler) const;
public event TypedEventHandler<RichEditBox,ContentLinkInvokedEventArgs> ContentLinkInvoked;
function onContentLinkInvoked(eventArgs) { /* Your code */ }
richEditBox.addEventListener("contentlinkinvoked", onContentLinkInvoked);
richEditBox.removeEventListener("contentlinkinvoked", onContentLinkInvoked);
- or -
richEditBox.oncontentlinkinvoked = onContentLinkInvoked;
Public Custom Event ContentLinkInvoked As TypedEventHandler(Of RichEditBox, ContentLinkInvokedEventArgs) 

事件類型

Windows 需求

裝置系列
Windows 10, version 1803 (已於 10.0.17134.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v6.0 引進)

備註

重要

此 API 支援內容連結。 Windows 10 版本 1903 之後的 Windows 版本中不提供啟用內容連結的 Windows 功能。 XAML 文字控制項的內容連結在版本 1903 之後將無法運作。

適用於