MESCIUS SPREAD for Windows Forms 17.0J
AutoSortIndex プロパティ (Column)

列の自動ソートインデックスを取得または設定します。
構文
'Declaration
 
Public Property AutoSortIndex As Integer
public int AutoSortIndex {get; set;}
次のサンプルコードは、AutoSortIndexプロパティを設定します。
FarPoint.Win.Spread.ColumnHeader ch;
ch = fpSpread1.ActiveSheet.ColumnHeader;
ch.RowCount = 3;
fpSpread1.ActiveSheet.Columns[0].AllowAutoSort = true;
fpSpread1.ActiveSheet.Cells[0, 0].Text = "Alignment";
fpSpread1.ActiveSheet.Columns[0].AutoSortIndex = 1;
Dim ch As FarPoint.Win.Spread.ColumnHeader
ch = FpSpread1.ActiveSheet.ColumnHeader
ch.RowCount = 3
FpSpread1.ActiveSheet.Columns(0).AllowAutoSort = True
FpSpread1.ActiveSheet.Cells(0, 0).Text = "Alignment"
FpSpread1.ActiveSheet.Columns(0).AutoSortIndex = 1
参照

Column クラス
Column メンバ

 

 


© MESCIUS inc. All rights reserved.