Quantcast
Channel: Our ComponentOne » All Posts
Viewing all articles
Browse latest Browse all 14170

Reply To: Clone a cell

$
0
0

Hi,

If you want to copy the cells from one Spread to another like that, you should use GetClipDataObject:

http://helpcentral.componentone.com/NetHelp/SpreadNet6/WF/webframe.html#FarPoint.Win.Spread~FarPoint.Win.Spread.SheetView~GetClipDataObject(Boolean,CellRange,ClipboardCopyOptions).html

Using that method, you can specify a range of cells, columns, or rows (use -1 for Column/ColumnCount for rows and -1 for Row/RowCount for columns) and get all formatting/values/formulas/etc. using ClipboardCopyOptions.All, with just one line of code. Then you can paste that data into another Spread using one more line of code:

http://helpcentral.componentone.com/NetHelp/SpreadNet6/WF/webframe.html#FarPoint.Win.Spread~FarPoint.Win.Spread.SheetView~ClipboardPaste(ClipboardPasteOptions,IDataObject,CellRange).html

Hope that helps!

Regards.
-Sean


Viewing all articles
Browse latest Browse all 14170

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>