Spread WPF 14
GrapeCity.Windows.SpreadSheet.UI Namespace / DragDropBlockCompletedEventArgs Class
Members Example

In This Topic
    DragDropBlockCompletedEventArgs Class
    In This Topic
    Represents the event data for the DragDropBlockCompleted event for the GcSpreadSheet component; occurs when the dragging and dropping of a range of cells is completed.
    Object Model
    DragDropBlockCompletedEventArgs Class
    Public Class DragDropBlockCompletedEventArgs 
       Inherits System.EventArgs
    Dim instance As DragDropBlockCompletedEventArgs
    public class DragDropBlockCompletedEventArgs : System.EventArgs 
    This example uses the DragDropBlockCompleted event arguments.
    gcSpreadSheet1.DragDropBlock += new EventHandler<DragDropBlockEventArgs>(gcSpread1_DragDropBlock);
     gcSpreadSheet1.DragDropBlockCompleted += new EventHandler<DragDropBlockCompletedEventArgs>(gcSpread1_DragDropBlockCompleted);
     void gcSpread1_DragDropBlock(object sender, DragDropBlockEventArgs e)
           if (e.ToRow > 10 || e.ToColumn > 10)
               e.Cancel = true; 
     void gcSpread1_DragDropBlockCompleted(object sender, DragDropBlockCompletedEventArgs e)
           if (e.Copy == true && e.Insert == true)
               MessageBox.Show("Copied insert action has been completed");                     
    Private Sub GcSpreadSheet1_DragDropBlock(sender As System.Object, e As GrapeCity.Windows.SpreadSheet.UI.DragDropBlockEventArgs)
            If (e.ToRow > 10 Or e.ToColumn > 10) Then
                e.Cancel = True
            End If
        End Sub
        Private Sub GcSpreadSheet1_DragDropBlockCompleted(sender As System.Object, e As GrapeCity.Windows.SpreadSheet.UI.DragDropBlockCompletedEventArgs)
            If (e.Copy = True And e.Insert = True) Then
                MessageBox.Show("Copied insert action has been completed")
            End If
        End Sub
    Inheritance Hierarchy


    See Also