RichTextBlock.ContextMenuOpening 事件
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
發生于系統處理顯示操作功能表的互動時。
public:
virtual event ContextMenuOpeningEventHandler ^ ContextMenuOpening;
// Register
event_token ContextMenuOpening(ContextMenuOpeningEventHandler const& handler) const;
// Revoke with event_token
void ContextMenuOpening(event_token const* cookie) const;
// Revoke with event_revoker
RichTextBlock::ContextMenuOpening_revoker ContextMenuOpening(auto_revoke_t, ContextMenuOpeningEventHandler const& handler) const;
public event ContextMenuOpeningEventHandler ContextMenuOpening;
function onContextMenuOpening(eventArgs) { /* Your code */ }
richTextBlock.addEventListener("contextmenuopening", onContextMenuOpening);
richTextBlock.removeEventListener("contextmenuopening", onContextMenuOpening);
- or -
richTextBlock.oncontextmenuopening = onContextMenuOpening;
Public Custom Event ContextMenuOpening As ContextMenuOpeningEventHandler
<RichTextBlock ContextMenuOpening="eventhandler" />