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;} |
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 Basic | Copy 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 |
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2