Class SpreadsheetPastingEventArgs
Represents the class which holds the properties of SpreadsheetPasting event.
Inherited Members
Namespace: Syncfusion.UI.Xaml.Spreadsheet.Helpers
Assembly: Syncfusion.SfSpreadsheet.WPF.dll
Syntax
public class SpreadsheetPastingEventArgs : GridCancelEventArgs
Constructors
SpreadsheetPastingEventArgs(GridRangeInfo, GridRangeInfo, Boolean, SpreadsheetGrid, PasteOptions)
Initializes a new instance of the SpreadsheetPastingEventArgs class.
Declaration
public SpreadsheetPastingEventArgs(GridRangeInfo range, GridRangeInfo range1, bool iscut, SpreadsheetGrid grid, PasteOptions option)
Parameters
Type | Name | Description |
---|---|---|
GridRangeInfo | range | Copied range. |
GridRangeInfo | range1 | Pasted range. |
System.Boolean | iscut | If True, cut operation, else copy operation. |
SpreadsheetGrid | grid | Current grid. |
PasteOptions | option | One of the enum option PasteOptions. |
Properties
Grid
Gets the active grid in SfSpreadsheet.
Declaration
public SpreadsheetGrid Grid { get; }
Property Value
Type | Description |
---|---|
SpreadsheetGrid | An instance of SpreadsheetGrid. |
IsCut
Gets or sets the boolean flag for copy/cut operation.
Declaration
public bool IsCut { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | If true, cut operation;else copy operation. |
PasteOption
Gets or sets the PasteOptions enum for paste operation .
Declaration
public PasteOptions PasteOption { get; set; }
Property Value
Type | Description |
---|---|
PasteOptions | An instance of PasteOptions. |
SourceRange
Gets the Copied range.
Declaration
public GridRangeInfo SourceRange { get; }
Property Value
Type | Description |
---|---|
GridRangeInfo | A GridRangeInfo object. |
TargetRange
Gets or sets the Pasted range.
Declaration
public GridRangeInfo TargetRange { get; set; }
Property Value
Type | Description |
---|---|
GridRangeInfo | A GridRangeInfo object. |