Class GridCopyPaste
All the Clipboard operations such as cut,copy,paste operations within the grid or cut,copy,paste the clipboard text from different source such as Excel,Notepad done here.
Implements
Namespace: Syncfusion.UI.Xaml.CellGrid
Assembly: Syncfusion.SfCellGrid.WPF.dll
Syntax
public class GridCopyPaste : Object, IDisposable
Constructors
GridCopyPaste()
Initializes the GridCopyPaste
Declaration
public GridCopyPaste()
Properties
Data
To return the grid data
Declaration
public GridCellData Data { get; }
Property Value
Type |
---|
GridCellData |
Model
To get or set the model of the grid
Declaration
public GridModel Model { get; set; }
Property Value
Type |
---|
GridModel |
Methods
Copy()
virtual method calls the copyrange method and trigger the events
Declaration
public virtual void Copy()
Copy(GridRangeInfo, Boolean)
copy the text into clipboard and copy the cellstyles into gridcelldata based on this information only we have done the paste operation in paste method.
Declaration
public virtual void Copy(GridRangeInfo copyRange, bool needToCut)
Parameters
Type | Name | Description |
---|---|---|
GridRangeInfo | copyRange | contains selected copy range |
System.Boolean | needToCut | if the flag is true then cut operation performed else copy operation performed |
Cut()
virtual method calls the copyrange method with cutflag as true and trigger the clipboardcut events
Declaration
public virtual void Cut()
Dispose()
Call the Dispose and SuppressFinalize method for dipose the instance of GridCopyPaste class.
Declaration
public void Dispose()
Dispose(Boolean)
Dispose the live resources used by the GridCopyPaste class.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | Dispose the instance, if it is True |
Paste()
replace the copied styleinformation into existing cellstyles and add the covered cells based on the copied cells
Declaration
public virtual void Paste()
PasteFromClipboard(GridRangeInfo)
copied the text from the clipboard and stored into the appropriate range of cells in grid
Declaration
protected virtual void PasteFromClipboard(GridRangeInfo range)
Parameters
Type | Name | Description |
---|---|---|
GridRangeInfo | range | currenly selected paste range |