SpreadJS Documentation
ClipboardPasted Event
GC.Spread.Sheets Namespace > Events type : ClipboardPasted Event
The sheet that triggered the event.
The sheet's name.
The range that was pasted.
The paste option that indicates what data is pasted from the clipboard: values, formatting, or formulas.
The data from the clipboard that will be pasted into Spread.Sheets.
Occurs when the user pastes from the Clipboard.
Syntax
var instance; // Type: Events
instance.ClipboardPasted = function(sheet, sheetName, cellRange, pasteOption, pasteData) { };
ClipboardPasted = function ( 
   sheet : Worksheet,
   sheetName : string,
   cellRange : Range,
   pasteOption : ClipboardPasteOptions,
   pasteData : Object
) { };

Parameters

sheet
The sheet that triggered the event.
sheetName
The sheet's name.
cellRange
The range that was pasted.
pasteOption
The paste option that indicates what data is pasted from the clipboard: values, formatting, or formulas.
pasteData
The data from the clipboard that will be pasted into Spread.Sheets.
Example
This example uses the ClipboardPasted event.
// Use IE to see the console log text
var activeSheet = spread.getActiveSheet();

activeSheet.bind(GC.Spread.Sheets.Events.ClipboardChanged, function (sender, args) {
    console.log("ClipboardChanged.");
});

activeSheet.bind(GC.Spread.Sheets.Events.ClipboardChanging, function (sender, args) {
    console.log("ClipboardChanging");
});

activeSheet.bind(GC.Spread.Sheets.Events.ClipboardPasted, function (sender, args) {
    console.log("ClipboardPasted");
});

activeSheet.bind(GC.Spread.Sheets.Events.ClipboardPasting, function (sender, args) {
    console.log("ClipboardPasting");
});
Remarks
Parameter Type Description
sheet GC.Spread.Sheets.Worksheet The sheet that triggered the event.
sheetName string The sheet's name.
cellRange GC.Spread.Sheets.Range The range that was pasted.
pasteOption GC.Spread.Sheets.ClipboardPasteOptions The paste option that indicates what data is pasted from the clipboard: values, formatting, or formulas.
pasteData Object The data from the clipboard that will be pasted into SpreadJS.
pasteData.text string The text string of the clipboard.
pasteData.html string The html string of the clipboard.
See Also

Reference

Events type