Spread Silverlight Documentation
AutoClipboard Property (GcSpreadSheet)
Example 


Gets or sets whether the component handles the shortcut keys for Clipboard actions.
Syntax
'Declaration
 
<System.ComponentModel.CategoryAttribute("Spread Workbook")>
<System.ComponentModel.DefaultValueAttribute()>
Public Property AutoClipboard As System.Boolean
'Usage
 
Dim instance As GcSpreadSheet
Dim value As System.Boolean
 
instance.AutoClipboard = value
 
value = instance.AutoClipboard
[System.ComponentModel.Category("Spread Workbook")]
[System.ComponentModel.DefaultValue()]
public System.bool AutoClipboard {get; set;}
Example
This example uses the AutoClipboard property.
gcSpreadSheet1.AutoClipboard = true;
gcSpreadSheet1.ClipBoardOptions = GrapeCity.Windows.SpreadSheet.Data.ClipboardPasteOptions.All;
gcSpreadSheet1.Sheets[0].Cells[0, 0].Value = "Copy";
gcSpreadSheet1.Sheets[0].Cells[1, 1].Value = "Cut";
gcSpreadSheet1.Invalidate();

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

Target Platforms: Windows 7, Windows 8 Desktop, Windows Vista SP1 or later, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6

See Also

Reference

GcSpreadSheet Class
GcSpreadSheet Members

 

 


Copyright © GrapeCity, inc. All rights reserved.