private void Form1_Load(object sender, System.EventArgs e)
{
//行列のドラッグ移動を許可します
fpSpread1.AllowRowMove = true;
fpSpread1.AllowColumnMove = true;
}
private void fpSpread1_RowDragMove(object sender, FarPoint.Win.Spread.DragMoveEventArgs e)
{
Console.WriteLine("行" + e.Index.ToString() + "のドラッグ移動が開始されました");
}
private void fpSpread1_RowDragMoveCompleted(object sender, FarPoint.Win.Spread.DragMoveCompletedEventArgs e)
{
//ドラッグ行インデックスを取得します
Console.WriteLine("移動元行:" + e.FromIndex.ToString());
Console.WriteLine("移動先行:" + e.ToIndex.ToString());
}
private void fpSpread1_ColumnDragMove(object sender, FarPoint.Win.Spread.DragMoveEventArgs e)
{
Console.WriteLine("列" + e.Index.ToString() + "のドラッグ移動が開始されました");
}
private void fpSpread1_ColumnDragMoveCompleted(object sender, FarPoint.Win.Spread.DragMoveCompletedEventArgs e)
{
//ドラッグ列インデックスを取得します
Console.WriteLine("移動元列:" + e.FromIndex.ToString());
Console.WriteLine("移動先列:" + e.ToIndex.ToString());
}
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles MyBase.Load
'行列のドラッグ移動を許可します
FpSpread1.AllowRowMove = True
FpSpread1.AllowColumnMove = True
End Sub
Private Sub FpSpread1_RowDragMove(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.DragMoveEventArgs) Handles FpSpread1.RowDragMove
Console.WriteLine("行" + e.Index.ToString + "のドラッグ移動が開始されました")
End Sub
Private Sub FpSpread1_RowDragMoveCompleted(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.DragMoveCompletedEventArgs) Handles FpSpread1.RowDragMoveCompleted
'ドラッグ行インデックスを取得します
Console.WriteLine("移動元行:" + e.FromIndex.ToString)
Console.WriteLine("移動先行:" + e.ToIndex.ToString)
End Sub
Private Sub FpSpread1_ColumnDragMove(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.DragMoveEventArgs) Handles FpSpread1.ColumnDragMove
Console.WriteLine("列" + e.Index.ToString + "のドラッグ移動が開始されました")
End Sub
Private Sub FpSpread1_ColumnDragMoveCompleted(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.DragMoveCompletedEventArgs) Handles FpSpread1.ColumnDragMoveCompleted
'ドラッグ列インデックスを取得します
Console.WriteLine("移動元列:" + e.FromIndex.ToString)
Console.WriteLine("移動先列:" + e.ToIndex.ToString)
End Sub