MESCIUS SPREAD for Windows Forms 17.0J
FilterBarFilterInactive フィールド

アクティブでないフィルタバーインジケーターの画像のインデックス(17)を指定します。
構文
'Declaration
 
Public Const FilterBarFilterInactive As Integer
public const int FilterBarFilterInactive
次のサンプルコードは、行をフィルタリングする前とフィルタリングした後の画像を設定します。
fpSpread1.Sheets[0].Columns[0].CellType = new FarPoint.Win.Spread.CellType.DateTimeCellType();
fpSpread1.Sheets[0].Columns[1].CellType = new FarPoint.Win.Spread.CellType.NumberCellType();
fpSpread1.Sheets[0].Columns[0, 2].AllowAutoFilter = true;
fpSpread1.Sheets[0].AutoFilterMode = FarPoint.Win.Spread.AutoFilterMode.FilterBar;
FarPoint.Win.Spread.SpreadView wrkbk = fpSpread1.GetRootWorkbook();
wrkbk.SetImage(FarPoint.Win.Spread.SpreadView.FilterBarFilterActive, Image.FromFile("C:\\cut.png"));
wrkbk.SetImage(FarPoint.Win.Spread.SpreadView.FilterBarFilterInactive, Image.FromFile("C:\\greencircle.png"));
FpSpread1.Sheets(0).Columns(0).CellType = New FarPoint.Win.Spread.CellType.DateTimeCellType()
FpSpread1.Sheets(0).Columns(1).CellType = New FarPoint.Win.Spread.CellType.NumberCellType()
FpSpread1.Sheets(0).Columns(0, 2).AllowAutoFilter = True
FpSpread1.Sheets(0).AutoFilterMode = FarPoint.Win.Spread.AutoFilterMode.FilterBar
Dim wrkbk As FarPoint.Win.Spread.SpreadView = FpSpread1.GetRootWorkbook()
wrkbk.SetImage(FarPoint.Win.Spread.SpreadView.FilterBarFilterActive, Image.FromFile("C:\cut.png"))
wrkbk.SetImage(FarPoint.Win.Spread.SpreadView.FilterBarFilterInactive, Image.FromFile("C:\greencircle.png"))
参照

SpreadView クラス
SpreadView メンバ

 

 


© MESCIUS inc. All rights reserved.