Spread WPF 14
GrapeCity.Windows.SpreadSheet.UI Namespace / GcSpreadSheet Class / ClipboardChanged Event
Example


In This Topic
    ClipboardChanged Event (GcSpreadSheet)
    In This Topic
    Occurs when a Clipboard change occurs that can effect the GcSpreadSheet control.
    Syntax
    'Declaration
     
    Public Event ClipboardChanged As EventHandler(Of EventArgs)
    'Usage
     
    Dim instance As GcSpreadSheet
    Dim handler As EventHandler(Of EventArgs)
     
    AddHandler instance.ClipboardChanged, handler
    public event EventHandler<EventArgs> ClipboardChanged
    Example
    This example uses the ClipboardChanged event.
    private void gcSpreadSheet1_ClipboardChanged(object sender, EventArgs e)
            {
                listBox1.Items.Add("ClipboardChanged");
            }
    
    private void gcSpreadSheet1_ClipboardChanging(object sender, EventArgs e)
            {
                listBox1.Items.Add("ClipboardChanging");
            }
    
    private void gcSpreadSheet1_ClipboardPasted(object sender, GrapeCity.Windows.SpreadSheet.UI.ClipboardPastedEventArgs e)
            {
                listBox1.Items.Add(e.CellRange.ColumnCount.ToString());
                listBox1.Items.Add(GrapeCity.Windows.SpreadSheet.Data.ClipboardPasteOptions.Values.ToString());
            }
    
    private void gcSpreadSheet1_ClipboardPasting(object sender, GrapeCity.Windows.SpreadSheet.UI.ClipboardPastingEventArgs e)
            {
                listBox1.Items.Add(e.CellRange.ColumnCount.ToString());
                listBox1.Items.Add(GrapeCity.Windows.SpreadSheet.Data.ClipboardPasteOptions.Values.ToString());
            }
    Private Sub GcSpreadSheet1_ClipboardChanged(sender As System.Object, e As System.EventArgs) Handles GcSpreadSheet1.ClipboardChanged
            ListBox1.Items.Add("ClipboardChanged")
        End Sub
    
    Private Sub GcSpreadSheet1_ClipboardChanging(sender As System.Object, e As System.EventArgs) Handles GcSpreadSheet1.ClipboardChanging
            ListBox1.Items.Add("ClipboardChanging")
        End Sub
    
    Private Sub GcSpreadSheet1_ClipboardPasted(sender As System.Object, e As GrapeCity.Windows.SpreadSheet.UI.ClipboardPastedEventArgs) Handles GcSpreadSheet1.ClipboardPasted
            ListBox1.Items.Add(e.CellRange.ColumnCount.ToString())
            ListBox1.Items.Add(GrapeCity.Windows.SpreadSheet.Data.ClipboardPasteOptions.Values.ToString())
        End Sub
    
    Private Sub GcSpreadSheet1_ClipboardPasting(sender As System.Object, e As GrapeCity.Windows.SpreadSheet.UI.ClipboardPastingEventArgs) Handles GcSpreadSheet1.ClipboardPasting
            ListBox1.Items.Add(e.CellRange.ColumnCount.ToString())
            ListBox1.Items.Add(GrapeCity.Windows.SpreadSheet.Data.ClipboardPasteOptions.Values.ToString())
        End Sub
    See Also