GrapeCity.Xaml.SpreadSheet.Data
ClipboardPasteOptions Enumeration
Example Example 


Specifies what data is pasted from the Clipboard.
Syntax
'Declaration
 
<FlagsAttribute()>
Public Enum ClipboardPasteOptions 
   Inherits System.Enum
'Usage
 
Dim instance As ClipboardPasteOptions
[Flags()]
public enum ClipboardPasteOptions : System.Enum 
Members
MemberDescription
All [0] Pastes all data objects, including values, formatting, and formulas.
FloatingObjects The floating objects
Formatting [2] Pastes only formatting.
Formulas [3] Pastes only formulas.
RangeGroup The range group
Span Indicates to copy a span.
Sparkline Indicates the type of data is a sparkline.
Tags The tags
Values [1] Pastes only values.
Example
This example uses the ClipboardPasteOptions enumerations.
gcSpreadSheet1.AutoClipboard = true;
gcSpreadSheet1.ClipBoardOptions = GrapeCity.Xaml.SpreadSheet.Data.ClipboardPasteOptions.All;
gcSpreadSheet1.Sheets[0].Cells[0, 0].Value = "Copy";
gcSpreadSheet1.Sheets[0].Cells[1, 1].Value = "Cut";

private void Button_Click_1(object sender, RoutedEventArgs e)
  {
        GrapeCity.Xaml.SpreadSheet.Data.CellRange r;
       r = new  GrapeCity.Xaml.SpreadSheet.Data.CellRange(0, 0, 2, 2);
       GrapeCity.Xaml.SpreadSheet.Data.CellRange r2;
       r2 = new GrapeCity.Xaml.SpreadSheet.Data.CellRange(3, 3, 2, 2);
       GrapeCity.Xaml.SpreadSheet.UI.GcSpreadSheet test;
        
       test = gcSpreadSheet1;
       test.View.ClipboardCopy(r);
       //test.View.ClipboardCut(r);
       test.View.ClipboardPaste(r2);       
   }
GcSpreadSheet1.AutoClipboard = True
GcSpreadSheet1.ClipBoardOptions = GrapeCity.Xaml.SpreadSheet.Data.ClipboardPasteOptions.All
GcSpreadSheet1.Sheets(0).Cells(0, 0).Value = "Copy"
GcSpreadSheet1.Sheets(0).Cells(1, 1).Value = "Cut"
 
    Private Sub Button_Click_1(sender As Object, e As RoutedEventArgs)
        Dim r As New GrapeCity.Xaml.SpreadSheet.Data.CellRange(0, 0, 2, 2)
        Dim r2 As New GrapeCity.Xaml.SpreadSheet.Data.CellRange(3, 3, 2, 2)
        Dim test = GcSpreadSheet1
        test.View.ClipboardCopy(r)
        'test.View.ClipboardCut(r)
        test.View.ClipboardPaste(r2)        
    End Sub
Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         GrapeCity.Xaml.SpreadSheet.Data.ClipboardPasteOptions

Requirements

Target Platforms: Windows Server 2012, Windows RT

See Also

Reference

GrapeCity.Xaml.SpreadSheet.Data Namespace

 

 


Copyright © GrapeCity, inc. All rights reserved.

Support Options