Spread Windows Forms 12.0 Product Documentation
GetClipDataObject(Boolean,CellRange,ClipboardCopyOptions) Method
Example 


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > SheetView Class : GetClipDataObject(Boolean,CellRange,ClipboardCopyOptions) Method
Whether from cutting
Cell range
ClipboardCopyOptions
Gets a data object with the necessary formats for Clipboard usage: CellInfoRange, ColumnInfoRange, and RowInfoRange.
Syntax
'Declaration
 
Public Function GetClipDataObject( _
   ByVal fromCutting As Boolean, _
   ByVal cellRange As CellRange, _
   ByVal copyOptions As ClipboardCopyOptions _
) As DataObject
'Usage
 
Dim instance As SheetView
Dim fromCutting As Boolean
Dim cellRange As CellRange
Dim copyOptions As ClipboardCopyOptions
Dim value As DataObject
 
value = instance.GetClipDataObject(fromCutting, cellRange, copyOptions)
public DataObject GetClipDataObject( 
   bool fromCutting,
   CellRange cellRange,
   ClipboardCopyOptions copyOptions
)

Parameters

fromCutting
Whether from cutting
cellRange
Cell range
copyOptions
ClipboardCopyOptions

Return Value

DataObject
Example
This example uses the GetClipDataObject method.
object res;
res = fpSpread1.Sheets[0].GetClipDataObject(true, new FarPoint.Win.Spread.Model.CellRange(0,0,2,2), FarPoint.Win.Spread.ClipboardCopyOptions.All);
Dim res As Object
res = fpSpread1.Sheets(0).GetClipDataObject(True, New FarPoint.Win.Spread.Model.CellRange(0, 0, 2, 2), FarPoint.Win.Spread.ClipboardCopyOptions.All)
See Also

Reference

SheetView Class
SheetView Members