Class GraphicCopyPasteController
Represents a class which is used to perform clipboard operations on ShapeImplIShape (TextBox, Picture, Charts, etc.).
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.Windows.Forms.Spreadsheet.GraphicCells
Assembly: Syncfusion.Spreadsheet.Windows.dll
Syntax
public class GraphicCopyPasteController : IDisposable
Remarks
Provides support to move and copy the shapes in Spreadsheet.
Constructors
GraphicCopyPasteController(Spreadsheet)
Initializes a new instance of the GraphicCopyPasteController class.
Declaration
public GraphicCopyPasteController(Spreadsheet spreadsheet)
Parameters
Type | Name | Description |
---|---|---|
Spreadsheet | spreadsheet | An instance of |
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()