TextBox.CopyingToClipboard Event

Definition

Occurs before copied text is moved to the clipboard.

// 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"/>

Event Type

Applies to

See also