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


FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > ButtonCellType Class : UseVisualStyleBackColor Property
Gets or sets whether to use the visual style setting background color.
Syntax
'Declaration
 
Public Property UseVisualStyleBackColor As Boolean
'Usage
 
Dim instance As ButtonCellType
Dim value As Boolean
 
instance.UseVisualStyleBackColor = value
 
value = instance.UseVisualStyleBackColor
public bool UseVisualStyleBackColor {get; set;}
Example
This example sets the UseVisualStyleBackColor property to false.
FarPoint.Win.Spread.CellType.ButtonCellType btn = new
FarPoint.Win.Spread.CellType.ButtonCellType();
btn.BackgroundStyle = FarPoint.Win.BackStyle.Gradient;
btn.ButtonColor = Color.Yellow;
btn.ButtonColor2 = Color.Orange;
btn.GradientMode = System.Drawing.Drawing2D.LinearGradientMode.ForwardDiagonal;
btn.UseVisualStyleBackColor = false;
fpSpread1.ActiveSheet.Cells[0, 0].CellType = btn;
Dim btn As New FarPoint.Win.Spread.CellType.ButtonCellType
btn.BackgroundStyle = FarPoint.Win.BackStyle.Gradient
btn.ButtonColor = Color.Yellow
btn.ButtonColor2 = Color.Orange
btn.GradientMode = System.Drawing2D.LinearGradientMode.ForwardDiagonal
btn.UseVisualStyleBackColor = False
fpSpread1.ActiveSheet.Cells(0, 0).CellType = btn
See Also

Reference

ButtonCellType Class
ButtonCellType Members