[]
Provides a way to receive notifications of changes to the content of the Clipboard using the Windows API.
public class ClipboardChangeNotifier : NativeWindow, IWin32Window, IDisposable
Public Class ClipboardChangeNotifier
Inherits NativeWindow
Implements IWin32Window, IDisposable
To be a part of the change notification you need to register a window in the Clipboard Viewer Chain. This provides notification messages to the window whenever the Clipboard changes, and also messages associated with managing the chain. This class manages the detail of keeping the chain intact and ensuring that the application is removed from the chain at the right point.
Name | Description |
---|---|
ClipboardChangeNotifier() | Constructs a new instance of this class. |
Name | Description |
---|---|
disposed | Whether this class has been disposed or not. |
installedHandle | Window for which Clipboard change notification was installed. |
nextViewerHandle | The next handle in the Clipboard viewer chain when the Clipboard notification is installed, otherwise Zero. |
Name | Description |
---|---|
Dispose() | Uninstalls Clipboard event notifications if necessary during dispose of this object. |
Install() | Installs Clipboard change notification. |
OnClipboardChanged(EventArgs) | Raises the |
OnHandleChange() | Responds to Window Handle change events and uninstalls the Clipboard change notification if it is installed. |
Uninstall() | Uninstalls Clipboard change notification. |
WndProc(ref Message) | Provides default WndProc processing and responds to Clipboard change notifications. |
Name | Description |
---|---|
ClipboardChanged | Notifies of a change to the clipboard's content. |