Spread Windows Forms 12.0 Product Documentation
UseVisualStyleBackColor Property (SideButtonBaseInfo)
Example 


GrapeCity.Win.PluginInputMan Assembly > GrapeCity.Win.Spread.InputMan.CellType Namespace > SideButtonBaseInfo Class : UseVisualStyleBackColor Property
Gets or sets whether to use the visual style backcolor when flat style is system and the system theme is active.
Syntax
'Declaration
 
Public Overridable Property UseVisualStyleBackColor As Boolean
'Usage
 
Dim instance As SideButtonBaseInfo
Dim value As Boolean
 
instance.UseVisualStyleBackColor = value
 
value = instance.UseVisualStyleBackColor
public virtual bool UseVisualStyleBackColor {get; set;}

Property Value

A bool value, true to use the visual style backcolor when flat style is system and system theme is active; otherwise, false.
Remarks
Visual styles are specifications for the control appearance. For example, visual styles can define the color, size, and font of the controls. They also enable you to configure the visual interface to coordinate with your application interface. Additionally, they provide a mechanism for all Windows-based applications to have visual styles applied. Only the SideButton and the SymbolButton are effected by this property.
Example
This example sets the UseVisualStyleBackColor property.
GrapeCity.Win.Spread.InputMan.CellType.SideButtonInfo testbutton = new GrapeCity.Win.Spread.InputMan.CellType.SideButtonInfo();
testbutton.BackColor = Color.Aquamarine;
testbutton.ForeColor = Color.DarkMagenta;
testbutton.UseVisualStyleBackColor = false;
testbutton.Enabled = true;
testbutton.Text = "1";

GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType dateCellType = new GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType();
dateCellType.SideButtons.Add(new GrapeCity.Win.Spread.InputMan.CellType.SideButtonInfo() { Text = "A" });
this.fpSpread1_Sheet1.Columns[0].CellType = dateCellType;

GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType textCellType = new GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType();
textCellType.SideButtons.Add(new GrapeCity.Win.Spread.InputMan.CellType.SideButtonInfo() { Text = "B" });
this.fpSpread1_Sheet1.Columns[1].CellType = textCellType;

GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType dateCellType2 = new GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType();
dateCellType2.SideButtons.Add(testbutton);
this.fpSpread1_Sheet1.Columns[2].CellType = dateCellType2;
Dim testbutton As New GrapeCity.Win.Spread.InputMan.CellType.SideButtonInfo()
testbutton.BackColor = Color.Aquamarine
testbutton.ForeColor = Color.DarkMagenta
testbutton.UseVisualStyleBackColor = False
testbutton.Enabled = True
testbutton.Text = "1"

Dim dateCellType As New GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType()
dateCellType.SideButtons.Add(New GrapeCity.Win.Spread.InputMan.CellType.SideButtonInfo() With {.Text = "A"})
fpSpread1_Sheet1.Columns(0).CellType = dateCellType

Dim textCellType = New GrapeCity.Win.Spread.InputMan.CellType.GcTextBoxCellType()
textCellType.SideButtons.Add(New GrapeCity.Win.Spread.InputMan.CellType.SideButtonInfo() With {.Text = "B"})
fpSpread1_Sheet1.Columns(1).CellType = textCellType

Dim dateCellType2 As New GrapeCity.Win.Spread.InputMan.CellType.GcDateTimeCellType()
dateCellType2.SideButtons.Add(testbutton)
fpSpread1_Sheet1.Columns(2).CellType = dateCellType2
See Also

Reference

SideButtonBaseInfo Class
SideButtonBaseInfo Members