PowerTools SPREAD for Windows Forms 10.0J
BackColor プロパティ (AutoCompleteHighlightStyle)


ハイライト表示される検索文字列の背景色を取得または設定します。
構文
'Declaration
 
Public Property BackColor As Color
'使用法
 
Dim instance As AutoCompleteHighlightStyle
Dim value As Color
 
instance.BackColor = value
 
value = instance.BackColor
public Color BackColor {get; set;}

プロパティ値

強調表示される文字列の背景色を示すSystem.Drawing.Color値。デフォルト値はColor.Emptyで、強調表示される文字列の背景が描画されないことを示します。
次のサンプルコードは、BackColor プロパティを使用します。
GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType inputcell1 = new GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType();
inputcell1.AcceptsArrowKeys = FarPoint.Win.SuperEdit.AcceptsArrowKeys.AllArrows;            
inputcell1.DisplayAlignment = GrapeCity.Win.Spread.InputMan.CellType.DisplayAlignment.Distributed;
AutoCompleteStringCollection acsc = new AutoCompleteStringCollection();
acsc.AddRange(new string[] { "One", "Two", "Three", "Four" });
inputcell1.AutoCompleteCustomSource  = acsc;
inputcell1.AutoCompleteMode = AutoCompleteMode.Suggest;
inputcell1.AutoCompleteSource = AutoCompleteSource.CustomSource;
inputcell1.AutoComplete.HighlightStyle.BackColor = Color.Crimson;
inputcell1.AutoComplete.HighlightMatchedText = true;
fpSpread1.Sheets[0].Cells[1, 1].CellType = inputcell1;
Dim inputcell1 As New GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType
inputcell1.AcceptsArrowKeys = FarPoint.Win.SuperEdit.AcceptsArrowKeys.AllArrows
inputcell1.DisplayAlignment = GrapeCity.Win.Spread.InputMan.CellType.DisplayAlignment.Distributed
Dim acsc As New AutoCompleteStringCollection
acsc.AddRange(New String() {"One", "Two", "Three", "Four"})
inputcell1.AutoCompleteCustomSource = acsc
inputcell1.AutoCompleteMode = AutoCompleteMode.Suggest
inputcell1.AutoCompleteSource = AutoCompleteSource.CustomSource
inputcell1.AutoComplete.HighlightStyle.BackColor = Color.Crimson
inputcell1.AutoComplete.HighlightMatchedText = True
FpSpread1.Sheets(0).Cells(1, 1).CellType = inputcell1
参照

AutoCompleteHighlightStyle クラス
AutoCompleteHighlightStyle メンバ

 

 


© 2004-2017, GrapeCity inc. All rights reserved.