FarPoint.Win.SpreadJ アセンブリ > FarPoint.Win.Spread.DrawingSpace 名前空間 > GradientSection クラス > GradientSection コンストラクタ : GradientSection コンストラクタ(Color) |
FarPoint.Win.Spread.DrawingSpace.GradientSection grd = new FarPoint.Win.Spread.DrawingSpace.GradientSection(Color.Empty); grd.AlphaBlend = 255; grd.Amount = 50; 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) grd.AlphaBlend = 255 grd.Amount = 50 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)