Spread ASP.NET 6.0 Product Documentation
Copy
Send Feedback
Spread ASP.NET 6.0 Product Documentation > Client-Side Scripting Reference > Scripting Members > Methods > Copy

Glossary Item Box

Copies the contents of the selected cells to the Clipboard.

Syntax

[JavaScript]

FpSpread1.Copy();

Parameters

None

Return Type

None

Remarks

This method is similar to pressing the Copy button on the command bar. This method does not cause a postback to occur.

Example

This is a sample that contains the method. On the client side, the script that contains the method would look like this:

JavaScript Copy Code
<SCRIPT>
  function moveSelection() {
    FpSpread1.Copy(); // copies the selection to Clipboard
    FpSpread1.SetActiveCell(0,0); // goes to top of displayed sheet
    FpSpread1.Paste(); // pastes selection
  }
</SCRIPT>

See Also

Paste | Scripting Members

© 2002-2012 GrapeCity, Inc. All Rights Reserved.