MESCIUS SPREAD for Windows Forms 15.0J
Count プロパティ (DragMoveEventArgs)
使用例 

移動する列または行の数を取得します。
構文
'宣言
 
Public ReadOnly Property Count As Integer
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 メンバ

 

 


© MESCIUS inc. All rights reserved.