GrapeCity SPREAD for WPF 2.0J
ActiveColumnIndex プロパティ

GcSpreadGrid 上のアクティブセルの列インデックスを取得します。
構文
'Declaration
 
Public ReadOnly Property ActiveColumnIndex As Integer
public int ActiveColumnIndex {get;}
次のサンプルは ActiveColumnIndex プロパティの使用方法を説明します。
public void ActiveCell()
{
    gcSpreadGrid1.ActiveCellPosition = new CellPosition(2, 3);

    Console.WriteLine("The active cell is " + gcSpreadGrid1.ActiveCell.ToString());
    Console.WriteLine("The active cell position is " + gcSpreadGrid1.ActiveCellPosition.ToString());
    Console.WriteLine("The active column is " + gcSpreadGrid1.ActiveColumn.ToString());
    Console.WriteLine("The active column index is " + gcSpreadGrid1.ActiveColumnIndex.ToString());
    Console.WriteLine("The active row is " + gcSpreadGrid1.ActiveRow.ToString());
    Console.WriteLine("The active row index is " + gcSpreadGrid1.ActiveRowIndex.ToString());
}
Public Sub ActiveCell()
    gcSpreadGrid1.ActiveCellPosition = New CellPosition(2, 3)

    Console.WriteLine("The active cell is " & gcSpreadGrid1.ActiveCell.ToString())
    Console.WriteLine("The active cell position is " & gcSpreadGrid1.ActiveCellPosition.ToString())
    Console.WriteLine("The active column is " & gcSpreadGrid1.ActiveColumn.ToString())
    Console.WriteLine("The active column index is " & gcSpreadGrid1.ActiveColumnIndex.ToString())
    Console.WriteLine("The active row is " & gcSpreadGrid1.ActiveRow.ToString())
    Console.WriteLine("The active row index is " & gcSpreadGrid1.ActiveRowIndex.ToString())
End Sub
参照

GcSpreadGrid クラス
GcSpreadGrid メンバ

 

 


Copyright © 2012 GrapeCity inc. All rights reserved.