Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

SpreadsheetControl.RangeCopying Event

Occurs before a cell range is copied in a worksheet.

Namespace: DevExpress.Xpf.Spreadsheet

Assembly: DevExpress.Xpf.Spreadsheet.v24.2.dll

NuGet Package: DevExpress.Wpf.Spreadsheet

#Declaration

public event RangeCopyingEventHandler RangeCopying

#Event Data

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.

#Remarks

Handle the RangeCopying event to perform specific actions before an end-user copies a worksheet range using 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