TextBox.CuttingToClipboard 事件
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
在剪切文本移动到剪贴板之前发生。
// Register
event_token CuttingToClipboard(TypedEventHandler<TextBox, TextControlCuttingToClipboardEventArgs const&> const& handler) const;
// Revoke with event_token
void CuttingToClipboard(event_token const* cookie) const;
// Revoke with event_revoker
TextBox::CuttingToClipboard_revoker CuttingToClipboard(auto_revoke_t, TypedEventHandler<TextBox, TextControlCuttingToClipboardEventArgs const&> const& handler) const;
public event TypedEventHandler<TextBox,TextControlCuttingToClipboardEventArgs> CuttingToClipboard;
function onCuttingToClipboard(eventArgs) { /* Your code */ }
textBox.addEventListener("cuttingtoclipboard", onCuttingToClipboard);
textBox.removeEventListener("cuttingtoclipboard", onCuttingToClipboard);
- or -
textBox.oncuttingtoclipboard = onCuttingToClipboard;
Public Custom Event CuttingToClipboard As TypedEventHandler(Of TextBox, TextControlCuttingToClipboardEventArgs)
<TextBox CuttingToClipboard="eventhandler"/>