Spread Windows Forms 13.0 Product Documentation
FarPoint.Win.Spread Assembly / FarPoint.Win.Spread Namespace / DragMoveCompletedEventArgs Class / Count Property
Example


In This Topic
    Count Property (DragMoveCompletedEventArgs)
    In This Topic
    Gets the number of columns or rows being moved.
    Syntax
    'Declaration
     
    Public ReadOnly Property Count As Integer
    'Usage
     
    Dim instance As DragMoveCompletedEventArgs
    Dim value As Integer
     
    value = instance.Count
    public int Count {get;}

    Property Value

    The number of columns or rows being moved
    Example
    This example returns the Count property.
    private void Form1_Load(object sender, EventArgs e)
            {
                fpSpread1.AllowColumnMove = true;  
                fpSpread1.AllowColumnMoveMultiple = true;         
            }
          
    private void fpSpread1_ColumnDragMoveCompleted(object sender, FarPoint.Win.Spread.DragMoveCompletedEventArgs 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_ColumnDragMoveCompleted(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.DragMoveCompletedEventArgs) Handles FpSpread1.ColumnDragMoveCompleted
            ListBox1.Items.Add(e.Count.ToString())
        End Sub
    See Also