CopyToClipboardEventArgs Class

Definition

Returns information when the OnCopyToClipboard event occurs.

public ref class CopyToClipboardEventArgs sealed : EventArgs
public sealed class CopyToClipboardEventArgs : EventArgs
type CopyToClipboardEventArgs = class
    inherit EventArgs
Public NotInheritable Class CopyToClipboardEventArgs
Inherits EventArgs
Inheritance
CopyToClipboardEventArgs

Remarks

The OnCopyToClipboard event is used when the message box is displayed in a multi-threaded application from a thread that does not belong to a Microsoft Windows form. In this case, an exception occurs, and the OnCopyToClipboard event enables the action to be marshaled manually to the appropriate thread. In this case, the EventHandled property should be set to true to prevent the exception message box from continuing with the copy operation.

Constructors

CopyToClipboardEventArgs()

Creates a new instance of CopyToClipboardEventArgs with the default properties.

CopyToClipboardEventArgs(String)

Creates a new instance of CopyToClipboardEventArgs with the specified copied text.

Properties

ClipboardText

Gets the error message information being copied.

EventHandled

Gets or sets whether the OnCopyToClipboard event is handled.

Applies to