GrapeCity.Xaml.SpreadSheet.UI
ClipboardPaste(CellRange,ClipboardPasteOptions) Method
Example 


GrapeCity.Xaml.SpreadSheet.UI Namespace > SheetView Class > ClipboardPaste Method : ClipboardPaste(CellRange,ClipboardPasteOptions) Method
The pasted cell range.
The Clipboard paste option that indicates which content type to paste.
Pastes content from the Clipboard to a cell range on the sheet.
Syntax
'Declaration
 
Public Overloads Sub ClipboardPaste( _
   ByVal range As CellRange, _
   ByVal option As ClipboardPasteOptions _
) 
'Usage
 
Dim instance As SheetView
Dim range As CellRange
Dim option As ClipboardPasteOptions
 
instance.ClipboardPaste(range, option)
public void ClipboardPaste( 
   CellRange range,
   ClipboardPasteOptions option
)

Parameters

range
The pasted cell range.
option
The Clipboard paste option that indicates which content type to paste.
Example
This example uses the ClipboardPaste method.
GcSpreadSheet1.Sheets[0].Cells[0, 0].Text = "Copy";
GcSpreadSheet1.View.ClipboardCut(new GrapeCity.Xaml.SpreadSheet.Data.CellRange(0, 0, 1, 1));
GcSpreadSheet1.View.ClipboardPaste(new GrapeCity.Xaml.SpreadSheet.Data.CellRange(2, 2, 1, 1), GrapeCity.Xaml.SpreadSheet.Data.ClipboardPasteOptions.Values);
GcSpreadSheet1.Sheets(0).Cells(0, 0).Text = "Copy"
GcSpreadSheet1.View.ClipboardCut(new GrapeCity.Xaml.SpreadSheet.Data.CellRange(0, 0, 1, 1))
GcSpreadSheet1.View.ClipboardPaste(new GrapeCity.Xaml.SpreadSheet.Data.CellRange(2, 2, 1, 1), GrapeCity.Xaml.SpreadSheet.Data.ClipboardPasteOptions.Values)
See Also

Reference

SheetView Class
SheetView Members
Overload List