GC.Spread.Sheets Namespace > Events type : ClipboardPasted Event |
var instance; // Type: Events instance.ClipboardPasted = function(sheet, sheetName, cellRange, pasteOption, pasteData) { };
ClipboardPasted = function ( sheet : Worksheet, sheetName : string, cellRange : Range, pasteOption : ClipboardPasteOptions, pasteData : Object ) { };
// 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"); });
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 Spread.Sheets. |
pasteData.text | string | The text string of the clipboard. |
pasteData.html | string | The html string of the clipboard. |