WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class GridCopyPaste

    Show / Hide Table of Contents

    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.

    Inheritance
    System.Object
    GridCopyPaste
    SpreadsheetCopyPaste
    Implements
    System.IDisposable
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.Windows.Forms.CellGrid
    Assembly: Syncfusion.Spreadsheet.Windows.dll
    Syntax
    public class GridCopyPaste : IDisposable

    Constructors

    GridCopyPaste()

    Initializes the GridCopyPaste

    Declaration
    public GridCopyPaste()

    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

    Implements

    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved