Class GraphicCopyPasteController
Represents a class which is used to perform clipboard operations on ShapeImplIShape (TextBox, Picture, Charts, etc.).
Inheritance
Implements
Namespace: Syncfusion.UI.Xaml.Spreadsheet.GraphicCells
Assembly: Syncfusion.SfSpreadsheet.UWP.dll
Syntax
public class GraphicCopyPasteController : Object, IDisposable
Remarks
Provides support to move and copy the shapes in Spreadsheet.
Constructors
GraphicCopyPasteController(SfSpreadsheet)
Initializes a new instance of the GraphicCopyPasteController class.
Declaration
public GraphicCopyPasteController(SfSpreadsheet spreadsheet)
Parameters
Type | Name | Description |
---|---|---|
SfSpreadsheet | spreadsheet | An instance of SfSpreadsheet |
Properties
CopiedShapes
Gets or sets the list of GraphicObject that is copied.
Declaration
protected List<GraphicObject> CopiedShapes { get; set; }
Property Value
Type |
---|
System.Collections.Generic.List<GraphicObject> |
NeedToCut
Gets or sets as true when cut operation is performed GraphicCopyPasteController.
Declaration
protected bool NeedToCut { get; set; }
Property Value
Type |
---|
System.Boolean |
Methods
CanCutCopy()
This function checks the condition to enable cut and copy operation on IShape.
Declaration
protected virtual bool CanCutCopy()
Returns
Type |
---|
System.Boolean |
CanDelete()
This function checks the condition to enable delete operation on IShape.
Declaration
protected virtual bool CanDelete()
Returns
Type |
---|
System.Boolean |
CanPaste()
This function checks the condition to enable paste operation on IShape.
Declaration
protected virtual bool CanPaste()
Returns
Type |
---|
System.Boolean |
Copy()
This function used to perform copy operations on IShape (TextBox, Picture, Charts, etc.).
Declaration
public virtual void Copy()
Cut()
This function used to perform cut operations on IShape (TextBox, Picture, Charts, etc.).
Declaration
public virtual void Cut()
Dispose()
Dispose all the resources used by the GraphicCopyPasteController
Declaration
public void Dispose()
Dispose(Boolean)
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |
Paste()
This function used to perform paste operations on IShape (TextBox, Picture, Charts, etc.).
Declaration
public virtual void Paste()