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

移動される列または行の数を取得します。
構文
'宣言
 
Public ReadOnly Property Count As Integer
public int Count {get;}

プロパティ値

移動される列または行の数
使用例
次のサンプルコードは、Countプロパティを返します。
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
参照

DragMoveCompletedEventArgs クラス
DragMoveCompletedEventArgs メンバ

 

 


© MESCIUS inc. All rights reserved.