windowsforms-devexpress-dot-xtraspreadsheet-dot-spreadsheetcontrol-25122921.md
Occurs before a cell range is copied in a worksheet.
Namespace : DevExpress.XtraSpreadsheet
Assembly : DevExpress.XtraSpreadsheet.v25.2.dll
NuGet Package : DevExpress.Win.Spreadsheet
public event RangeCopyingEventHandler RangeCopying
Public Event RangeCopying As RangeCopyingEventHandler
The RangeCopying event's data class is RangeCopyingEventArgs. The following properties provide information specific to this event:
| Property | Description |
|---|---|
| Cancel | Gets or sets a value indicating whether the copy operation should be canceled. |
| IsCut | Gets or sets a value indicating whether data is being cut from the source range. |
| Range | Gets or sets a cell range from which data is being copied. |
Handle the RangeCopying event to perform any actions before a user copies a worksheet range via the control’s UI. You can cancel the copy operation by setting the event parameter’s Cancel property to true.
After a cell range has been copied, the SpreadsheetControl.RangeCopied event is raised.
See Also