Spread Windows Forms 10.0 Product Documentation
BackColor Property (AutoCompleteHighlightStyle)
Example 


Gets or sets the background color of the highlighted string.
Syntax
'Declaration
 
Public Property BackColor As Color
'Usage
 
Dim instance As AutoCompleteHighlightStyle
Dim value As Color
 
instance.BackColor = value
 
value = instance.BackColor
public Color BackColor {get; set;}

Property Value

A System.Drawing.Color value that indicates the background color of the highlighted string. Default value is Color.Empty, which means do not paint the background of the highlighted string.
Example
This example uses the BackColor property.
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
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

AutoCompleteHighlightStyle Class
AutoCompleteHighlightStyle Members

 

 


Copyright © GrapeCity, inc. All rights reserved.