SpreadsheetControl.ClipboardDataPasted Event
Occurs after data was pasted from the clipboard onto a worksheet.
Namespace: DevExpress.XtraSpreadsheet
Assembly: DevExpress.XtraSpreadsheet.v24.1.dll
NuGet Package: DevExpress.Win.Spreadsheet
Declaration
Event Data
The ClipboardDataPasted event's data class is ClipboardDataPastedEventArgs. The following properties provide information specific to this event:
Property | Description |
---|---|
PictureId | Gets the ID value of the inserted picture. |
PictureName | Gets the name of the inserted picture. |
TargetRange | Gets 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.