GrapeCity SPREAD for Windows Forms 11.0J
GradientSection コンストラクタ(Color,Int32,Int32)


Color
グラデーションの量
アルファブレンド(透過性)の量
パラメータを指定して、新しいカラーグラデーションセクションを作成します。
構文
'Declaration
 
Public Function New( _
   ByVal color As Color, _
   ByVal amount As Integer, _
   ByVal alphaBlend As Integer _
)
'使用法
 
Dim color As Color
Dim amount As Integer
Dim alphaBlend As Integer
 
Dim instance As New GradientSection(color, amount, alphaBlend)
public GradientSection( 
   Color color,
   int amount,
   int alphaBlend
)

パラメータ

color
Color
amount
グラデーションの量
alphaBlend
アルファブレンド(透過性)の量
次のサンプルコードは、シート上のシェイプのグラデーションを設定します。
FarPoint.Win.Spread.DrawingSpace.GradientSection grd = new FarPoint.Win.Spread.DrawingSpace.GradientSection(Color.Empty, 50,
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, 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)
参照

GradientSection クラス
GradientSection メンバ
オーバーロード一覧

 

 


© 2004-2018, GrapeCity Inc. All rights reserved.