New to Telerik UI for WinForms? Start a free 30-day trial

Provides cancellation state and clipboard format data for a clipboard operation.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.dll

Syntax:

C#
public class ClipboardEventArgs : CancelEventArgs

Inheritance: objectEventArgsCancelEventArgsClipboardEventArgs

Derived Classes: GridViewClipboardEventArgsSchedulerClipboardEventArgsVirtualGridClipboardEventArgs

Inherited Members CancelEventArgs.CancelEventArgs.Empty

Constructors

Initializes clipboard event data without a data object or format.

C#
public ClipboardEventArgs()

Initializes clipboard event data with a cancellation state and data object.

C#
public ClipboardEventArgs(bool cancel, DataObject dataObject)
Parameters:cancelbool

The initial cancellation state.

dataObjectDataObject

The data object associated with the clipboard operation.

Initializes clipboard event data with a cancellation state, format, and data object.

C#
public ClipboardEventArgs(bool cancel, string format, DataObject dataObject)
Parameters:cancelbool

The initial cancellation state.

formatstring

The clipboard format associated with the data object.

dataObjectDataObject

The data object associated with the clipboard operation.

Initializes clipboard event data with the specified cancellation state.

C#
public ClipboardEventArgs(bool cancel)
Parameters:cancelbool

The initial cancellation state.

Properties

Gets the data object associated with the clipboard operation, if one was supplied.

C#
public DataObject DataObject { get; }

Gets the clipboard format associated with the data object, if one was supplied.

C#
public string Format { get; }