[]
        
(Showing Draft Content)

FarPoint.Win.ClipboardChangeNotifier

ClipboardChangeNotifier Class

Provides a way to receive notifications of changes to the content of the Clipboard using the Windows API.

Inheritance
ClipboardChangeNotifier
Namespace: FarPoint.Win
Assembly: FarPoint.Win.dll
Syntax
public class ClipboardChangeNotifier : NativeWindow, IWin32Window, IDisposable
Public Class ClipboardChangeNotifier
    Inherits NativeWindow
    Implements IWin32Window, IDisposable
Remarks

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.

Constructors

Name Description
ClipboardChangeNotifier()

Constructs a new instance of this class.

Fields

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.

Methods

Name Description
Dispose()

Uninstalls Clipboard event notifications if necessary during dispose of this object.

Install()

Installs Clipboard change notification.
The AssignHandle method of this class must have been called first.

OnClipboardChanged(EventArgs)

Raises the ClipboardChanged event.

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.

Events

Name Description
ClipboardChanged

Notifies of a change to the clipboard's content.