Clipboard.HistoryChanged Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs when a new item is added to the clipboard history.
// Register
static event_token HistoryChanged(EventHandler<ClipboardHistoryChangedEventArgs> const& handler) const;
// Revoke with event_token
static void HistoryChanged(event_token const* cookie) const;
// Revoke with event_revoker
static Clipboard::HistoryChanged_revoker HistoryChanged(auto_revoke_t, EventHandler<ClipboardHistoryChangedEventArgs> const& handler) const;
public static event System.EventHandler<ClipboardHistoryChangedEventArgs> HistoryChanged;
function onHistoryChanged(eventArgs) { /* Your code */ }
Windows.ApplicationModel.DataTransfer.Clipboard.addEventListener("historychanged", onHistoryChanged);
Windows.ApplicationModel.DataTransfer.Clipboard.removeEventListener("historychanged", onHistoryChanged);
- or -
Windows.ApplicationModel.DataTransfer.Clipboard.onhistorychanged = onHistoryChanged;
Public Shared Custom Event HistoryChanged As EventHandler(Of ClipboardHistoryChangedEventArgs)
Event Type
Windows requirements
Device family |
Windows 10, version 1809 (introduced in 10.0.17763.0)
|
API contract |
Windows.Foundation.UniversalApiContract (introduced in v7.0)
|