Visual Basic (Declaration) | |
---|---|
Public Property LinearGradientMode As LinearGradientMode |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As GradientSelectionRenderer Dim value As LinearGradientMode instance.LinearGradientMode = value value = instance.LinearGradientMode |
C# | |
---|---|
public LinearGradientMode LinearGradientMode {get; set;} |
Property Value
LinearGradientMode setting that specifies the gradient modeThis example customizes the selection renderer.
C# | Copy Code |
---|---|
FarPoint.Win.Spread.GradientSelectionRenderer gsr = new FarPoint.Win.Spread.GradientSelectionRenderer();
gsr.Color1 = Color.Green;
gsr.Color2 = Color.LightGreen;
gsr.LinearGradientMode = Drawing2D.LinearGradientMode.BackwardDiagonal;
gsr.Opacity = 50;
fpSpread1.SelectionRenderer = gsr; |
Visual Basic | Copy Code |
---|---|
Dim gsr As New FarPoint.Win.Spread.GradientSelectionRenderer gsr.Color1 = Color.Green gsr.Color2 = Color.LightGreen gsr.LinearGradientMode = Drawing2D.LinearGradientMode.BackwardDiagonal gsr.Opacity = 50 FpSpread1.SelectionRenderer = gsr |
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