MESCIUS SPREAD for Windows Forms 15.0J
ForeColor プロパティ (FilterBarCell)
使用例 

テキストの色を取得または設定します。
構文
'宣言
 
Public Property ForeColor As Color
public Color ForeColor {get; set;}

プロパティ値

テキストの色。
使用例
次のサンプルコードは、ForeColorプロパティを設定します。
FarPoint.Win.Spread.CellType.FilterBarCellType fbcell = new FarPoint.Win.Spread.CellType.FilterBarCellType();
fbcell.AutoFormat = true;
fbcell.ContextMenuType = FarPoint.Win.Spread.CellType.FilterBarContextMenuType.DateTime;      
fpSpread1.Sheets[0].AutoFilterMode = FarPoint.Win.Spread.AutoFilterMode.FilterBar;
fpSpread1.Sheets[0].FilterBar.Cells[0].CellType = fbcell;
fpSpread1.Sheets[0].FilterBar.Cells[0].BackColor = Color.Aqua;
fpSpread1.Sheets[0].FilterBar.Cells[0].ForeColor = Color.Black;
fpSpread1.Sheets[0].Cells[0, 0].Value = DateTime.Now;
Dim fbcell As New FarPoint.Win.Spread.CellType.FilterBarCellType()
fbcell.AutoFormat = True
fbcell.ContextMenuType = FarPoint.Win.Spread.CellType.FilterBarContextMenuType.DateTime
fpSpread1.Sheets(0).AutoFilterMode = FarPoint.Win.Spread.AutoFilterMode.FilterBar
fpSpread1.Sheets(0).FilterBar.Cells(0).CellType = fbcell
fpSpread1.Sheets(0).FilterBar.Cells(0).BackColor = Color.Aqua
fpSpread1.Sheets(0).FilterBar.Cells(0).ForeColor = Color.Black
fpSpread1.Sheets(0).Cells(0, 0).Value = DateTime.Now
参照

FilterBarCell クラス
FilterBarCell メンバ

 

 


© MESCIUS inc. All rights reserved.