PowerTools SPREAD for Windows Forms 10.0J
Count プロパティ (DragMoveEventArgs)


移動する列または行の数を取得します。
構文
'Declaration
 
Public ReadOnly Property Count As Integer
'使用法
 
Dim instance As DragMoveEventArgs
Dim value As Integer
 
value = instance.Count
public int Count {get;}
次のサンプルコードは、列数を返します。
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
参照

DragMoveEventArgs クラス
DragMoveEventArgs メンバ

 

 


© 2004-2017, GrapeCity inc. All rights reserved.