GrapeCity.Xaml.SpreadSheet.UI
Copy Property (DragDropBlockCompletedEventArgs)
Example 


Gets whether the source range is copied.
Syntax
'Declaration
 
Public ReadOnly Property Copy As Boolean
'Usage
 
Dim instance As DragDropBlockCompletedEventArgs
Dim value As Boolean
 
value = instance.Copy
public bool Copy {get;}

Property Value

A bool value that indicates whether the source range is copied.
Example
This example uses the Copy property.
private void gcSpreadSheet1_DragDropBlock(object sender, GrapeCity.Xaml.SpreadSheet.UI.DragDropBlockEventArgs e)
        {
            if (e.ToRow > 10 || e.ToColumn > 10)
                e.Cancel = true; 
        }

        private void gcSpreadSheet1_DragDropBlockCompleted(object sender, GrapeCity.Xaml.SpreadSheet.UI.DragDropBlockCompletedEventArgs e)
        {
            if (e.Copy == true && e.Insert == true)
                listBox1.Items.Add("Copied insert action has been completed");                   
         }
Private Sub gcSpreadSheet1_DragDropBlock(sender As Object, e As GrapeCity.Xaml.SpreadSheet.UI.DragDropBlockEventArgs) Handles gcSpreadSheet1.DragDropBlock
        If (e.ToRow > 10 Or e.ToColumn > 10) Then
            e.Cancel = True
        End If
    End Sub

    Private Sub gcSpreadSheet1_DragDropBlockCompleted(sender As Object, e As GrapeCity.Xaml.SpreadSheet.UI.DragDropBlockCompletedEventArgs) Handles gcSpreadSheet1.DragDropBlockCompleted
        If (e.Copy = True And e.Insert = True) Then
            listBox1.Items.Add("Copied insert action has been completed")
        End If
    End Sub
Requirements

Target Platforms: Windows Server 2012, Windows RT

See Also

Reference

DragDropBlockCompletedEventArgs Class
DragDropBlockCompletedEventArgs Members

 

 


Copyright © GrapeCity, inc. All rights reserved.

Support Options