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


Glossary Item Box

Gets or sets the drawing style of a gradient button.

Syntax

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

Property Value

LinearGradientMode setting that specifies the mode of the gradient

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 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

See Also

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