Spread Windows Forms 10.0 Product Documentation
Count Property (DragMoveEventArgs)
Example 


Gets the number of columns or rows to move.
Syntax
'Declaration
 
Public ReadOnly Property Count As Integer
'Usage
 
Dim instance As DragMoveEventArgs
Dim value As Integer
 
value = instance.Count
public int Count {get;}
Example
This example returns the column count.
private void Form1_Load(object sender, EventArgs e)
        {
            fpSpread1.AllowColumnMove = true;     
            fpSpread1.AllowColumnMoveMultiple = true;      
        }
       
private void fpSpread1_ColumnDragMove(object sender, FarPoint.Win.Spread.DragMoveEventArgs e)
        {
            listBox1.Items.Add(e.Count.ToString());
        }
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        FpSpread1.AllowColumnMove = True
        FpSpread1.AllowColumnMoveMultiple = True
    End Sub

    Private Sub FpSpread1_ColumnDragMove(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.DragMoveEventArgs) Handles FpSpread1.ColumnDragMove
        ListBox1.Items.Add(e.Count.ToString())
    End Sub
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

DragMoveEventArgs Class
DragMoveEventArgs Members

 

 


Copyright © GrapeCity, inc. All rights reserved.