Spread Windows Forms 7.0 Product Documentation
BackgroundStyle Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > ButtonCellType Class : BackgroundStyle Property


Glossary Item Box

Gets or sets how the background is rendered.

Syntax

Visual Basic (Declaration) 
Public Property BackgroundStyle As BackStyle
Visual Basic (Usage)Copy Code
Dim instance As ButtonCellType
Dim value As BackStyle
 
instance.BackgroundStyle = value
 
value = instance.BackgroundStyle
C# 
public BackStyle BackgroundStyle {get; set;}

Example

C#Copy Code
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 = Drawing2D.LinearGradientMode.ForwardDiagonal;
fpSpread1.ActiveSheet.Cells[0, 0].CellType = btn;
Visual BasicCopy Code
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 = Drawing2D.LinearGradientMode.ForwardDiagonal

FpSpread1.ActiveSheet.Cells(0, 0).CellType = btn

Requirements

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

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.