Back to Devexpress

SpreadsheetControl.ClipboardDataPasted Event

windowsforms-devexpress-dot-xtraspreadsheet-dot-spreadsheetcontrol-0b8ac0e7.md

latest2.8 KB
Original Source

SpreadsheetControl.ClipboardDataPasted Event

Occurs after data was pasted from the clipboard onto a worksheet.

Namespace : DevExpress.XtraSpreadsheet

Assembly : DevExpress.XtraSpreadsheet.v25.2.dll

NuGet Package : DevExpress.Win.Spreadsheet

Declaration

csharp
public event ClipboardDataPastedEventHandler ClipboardDataPasted
vb
Public Event ClipboardDataPasted As ClipboardDataPastedEventHandler

Event Data

The ClipboardDataPasted event's data class is ClipboardDataPastedEventArgs. The following properties provide information specific to this event:

PropertyDescription
PictureIdGets the ID value of the inserted picture.
PictureNameGets the name of the inserted picture.
TargetRangeGets the cell range into which the data has been pasted.

Remarks

Handle this event to perform any actions after data was pasted from the clipboard.

The ClipboardDataPasted event fires last in a sequence of three events that are raised when data is pasted from a cell’s in-place editor or external application (e.g., Microsoft® Excel®). The SpreadsheetControl.ClipboardDataPasting event fires first before data is pasted into destination cells, the SpreadsheetControl.ClipboardDataObtained event fires next and allows you to modify the copied data, and finally, the ClipboardDataPasted event occurs. To cancel the paste operation, handle the SpreadsheetControl.ClipboardDataObtained event and set its Cancel parameter to true.

See Also

ClipboardDataPasting

ClipboardDataObtained

SpreadsheetControl Class

SpreadsheetControl Members

DevExpress.XtraSpreadsheet Namespace