Skip to main content

SpreadsheetControl.CopiedRangePasting Event

Occurs before the range content is pasted into target cells.

Namespace: DevExpress.XtraSpreadsheet

Assembly: DevExpress.XtraSpreadsheet.v26.1.dll

Declaration

public event CopiedRangePastingEventHandler CopiedRangePasting

Event Data

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

Property Description
Cancel Gets or sets a value indicating whether the operation of pasting data should be canceled.
IsCut Gets or sets a value indicating whether the copied data is cut from the source range.
PasteSpecialFlags Gets or sets the part of copied data to be pasted into target range.
TargetRange Gets the cell range into which data are going to be pasted.

Remarks

The event fires when the source of the data pasted is within the current application/workbook. Handle the CopiedRangePasting event to perform any actions before the content of copied cells is pasted into the target range. The event parameters allow you define paste options, specify whether the cut operation should be performed, or cancel the paste operation. Handle the SpreadsheetControl.ClipboardDataObtained event to modify the data being pasted when the source of the data is external to the application.

The SpreadsheetControl.CopiedRangePasted event is raised when the paste operation is completed.

See Also