Spread Windows Forms 6.0 Product Documentation
DragDropBlockCompletedEventArgs Constructor
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread Namespace > DragDropBlockCompletedEventArgs Class : DragDropBlockCompletedEventArgs Constructor


view
View from which to make a selection
rowBegin
Row index of the top left cell of the source range
columnBegin
Column index of the top left cell of the source range
rowEnd
Row index of the bottom right cell of the source range
columnEnd
Column index of the bottom right cell of the source range
destRowBegin
Row index of the top left cell of the destination range
destColumnBegin
Column index of the top left cell of the destination range
destRowEnd
Row index of the bottom right cell of the destination range
destColumnEnd
Column index of the bottom right cell of the destination range
overwrite
Whether the destination range contains data
action
Whether the source range is copied or moved
dataOnly
Whether data or formatting (or both) is copied or moved

Glossary Item Box

Creates a new object with the DragDropBlockCompleted event arguments.

Syntax

Visual Basic (Declaration) 
Public Function New( _
   ByVal view As SpreadView, _
   ByVal rowBegin As Integer, _
   ByVal columnBegin As Integer, _
   ByVal rowEnd As Integer, _
   ByVal columnEnd As Integer, _
   ByVal destRowBegin As Integer, _
   ByVal destColumnBegin As Integer, _
   ByVal destRowEnd As Integer, _
   ByVal destColumnEnd As Integer, _
   ByVal overwrite As Boolean, _
   ByVal action As Integer, _
   ByVal dataOnly As Boolean _
)
Visual Basic (Usage)Copy Code
Dim view As SpreadView
Dim rowBegin As Integer
Dim columnBegin As Integer
Dim rowEnd As Integer
Dim columnEnd As Integer
Dim destRowBegin As Integer
Dim destColumnBegin As Integer
Dim destRowEnd As Integer
Dim destColumnEnd As Integer
Dim overwrite As Boolean
Dim action As Integer
Dim dataOnly As Boolean
 
Dim instance As New DragDropBlockCompletedEventArgs(view, rowBegin, columnBegin, rowEnd, columnEnd, destRowBegin, destColumnBegin, destRowEnd, destColumnEnd, overwrite, action, dataOnly)
C# 
public DragDropBlockCompletedEventArgs( 
   SpreadView view,
   int rowBegin,
   int columnBegin,
   int rowEnd,
   int columnEnd,
   int destRowBegin,
   int destColumnBegin,
   int destRowEnd,
   int destColumnEnd,
   bool overwrite,
   int action,
   bool dataOnly
)

Parameters

view
View from which to make a selection
rowBegin
Row index of the top left cell of the source range
columnBegin
Column index of the top left cell of the source range
rowEnd
Row index of the bottom right cell of the source range
columnEnd
Column index of the bottom right cell of the source range
destRowBegin
Row index of the top left cell of the destination range
destColumnBegin
Column index of the top left cell of the destination range
destRowEnd
Row index of the bottom right cell of the destination range
destColumnEnd
Column index of the bottom right cell of the destination range
overwrite
Whether the destination range contains data
action
Whether the source range is copied or moved
dataOnly
Whether data or formatting (or both) is copied or moved

Example

C#Copy Code
fpSpread1.DragDropBlockCompleted += new FarPoint.Win.Spread.DragDropBlockCompletedEventHandler(fpSpread1DragDropBlockCompleted);


private void fpSpread1DragDropBlockCompleted(object sender, FarPoint.Win.Spread.DragDropBlockCompletedEventArgs e) 
{ 
    fpSpread1.ActiveSheet.Columns[e.ColumnEnd].BackColor = Color.Yellow;
}
Visual BasicCopy Code
Dim eh As FarPoint.Win.Spread.DragDropBlockCompletedEventHandler = AddressOf FpSpread1DragDropBlockCompleted
AddHandler FpSpread1.DragDropBlockCompleted, eh

Private Sub FpSpread1DragDropBlockCompleted(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.DragDropBlockCompletedEventArgs)
Handles FpSpread1.DragDropBlockCompleted
    FpSpread1.ActiveSheet.Columns(e.ColumnEnd).BackColor = Color.Yellow
End Sub

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© 2002-2012 ComponentOne, a division of GrapeCity. All Rights Reserved.