menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class BeforeCopyPasteEventArgs - API Reference

    Show / Hide Table of Contents

    Class BeforeCopyPasteEventArgs

    Provides information about the BeforeCopyPaste event.

    Inheritance
    System.Object
    GridEventBaseArgs
    BeforeCopyPasteEventArgs
    BeforeCopyPasteEventArgs
    Inherited Members
    GridEventBaseArgs.PreventRender
    Namespace: Syncfusion.Blazor.Grids
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class BeforeCopyPasteEventArgs : GridEventBaseArgs

    Constructors

    BeforeCopyPasteEventArgs()

    Declaration
    public BeforeCopyPasteEventArgs()

    Properties

    Action

    Gets the current action whether it is Copy or Paste.

    Declaration
    public string Action { get; }
    Property Value
    Type Description
    System.String

    When copy action is performed then the value will be Copy and when paste action is performed then the value will be Paste.

    Remarks

    If the Copy action is prevented using Cancel argument, then the corresponding Paste events doesn't trigger, since Paste events will be triggered based on clipboard text.

    Cancel

    Gets or sets a value indicating whether to cancel the entire copy, paste action in the grid.

    Declaration
    public bool Cancel { get; set; }
    Property Value
    Type Description
    System.Boolean

    The default value is false. If the Cancel property is set to true, then the Copy and Paste action will be cancelled.

    ClipboardText

    Gets or sets the copied content of the selected cells or rows.

    Declaration
    public string ClipboardText { get; set; }
    Property Value
    Type Description
    System.String

    A string that represents the copied content of the selected cells or rows. The default value is null.

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