BeforePasteEventArgs

23 Sep 20251 minute to read

Defines the Before paste event args.

Properties

cancel boolean

Gets or sets a value indicating whether to cancel the paste operation.
Set to true to prevent the default paste behavior.

pasteContent string

Gets or sets the content to be pasted.
This can be modified before pasting into the document.
For text paste type, you will get the text content; otherwise, you will get sfdt content.

pasteType PasteType

Gets or sets the format type of the content being pasted.