FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.DrawingSpace Namespace > GradientSection Class > GradientSection Constructor : GradientSection Constructor(Color,Int32) |
'Usage Dim color As Color Dim amount As Integer Dim instance As New GradientSection(color, amount)
FarPoint.Win.Spread.DrawingSpace.GradientSection grd = new FarPoint.Win.Spread.DrawingSpace.GradientSection(Color.Empty, 50); grd.AlphaBlend = 255; grd.Color = Color.Red; FarPoint.Win.Spread.DrawingSpace.RectangleShape rs = new FarPoint.Win.Spread.DrawingSpace.RectangleShape(); rs.Name = "GradientRect"; rs.Gradient.Style = FarPoint.Win.Spread.DrawingSpace.GradientStyle.RadialFromCenter; rs.Gradient.Sections[0] = grd; fpSpread1.ActiveSheet.AddShape(rs);
Dim grd As New FarPoint.Win.Spread.DrawingSpace.GradientSection(Color.Empty, 50) grd.AlphaBlend = 255 grd.Color = Color.Red Dim rs As New FarPoint.Win.Spread.DrawingSpace.RectangleShape rs.Name = "GradientRect" rs.Gradient.Style = FarPoint.Win.Spread.DrawingSpace.GradientStyle.RadialFromCenter rs.Gradient.Sections(0) = grd FpSpread1.ActiveSheet.AddShape(rs)
Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8