TextBox.CopyingToClipboard イベント

定義

コピーしたテキストがクリップボードに移動される前に発生します。

// Register
event_token CopyingToClipboard(TypedEventHandler<TextBox, TextControlCopyingToClipboardEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
TextBox::CopyingToClipboard_revoker CopyingToClipboard(auto_revoke_t, TypedEventHandler<TextBox, TextControlCopyingToClipboardEventArgs const&> const& handler) const;
public event TypedEventHandler<TextBox,TextControlCopyingToClipboardEventArgs> CopyingToClipboard;
function onCopyingToClipboard(eventArgs) { /* Your code */ }
textBox.addEventListener("copyingtoclipboard", onCopyingToClipboard);
textBox.removeEventListener("copyingtoclipboard", onCopyingToClipboard);
- or -
textBox.oncopyingtoclipboard = onCopyingToClipboard;
Public Custom Event CopyingToClipboard As TypedEventHandler(Of TextBox, TextControlCopyingToClipboardEventArgs) 
<TextBox CopyingToClipboard="eventhandler"/>

イベントの種類

Windows の要件

デバイス ファミリ
Windows 10 Fall Creators Update (10.0.16299.0 で導入)
API contract
Windows.Foundation.UniversalApiContract (v5.0 で導入)

適用対象

こちらもご覧ください