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

GcSpreadGrid 上のアクティブな列に対応する Column オブジェクトを取得します。
構文
'Declaration
 
Public ReadOnly Property ActiveColumn As Column
public Column ActiveColumn {get;}
次のサンプルは ActiveColumn プロパティの使用方法を説明します。
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.