PowerTools SPREAD for Windows Forms 8.0J
Color プロパティ (GradientSection)


グラデーションの色を取得または設定します。
構文
'Declaration
 
Public Overridable Property Color As Color
'使用法
 
Dim instance As GradientSection
Dim value As Color
 
instance.Color = value
 
value = instance.Color
public virtual Color Color {get; set;}

プロパティ値

グラデーションの色を含む 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)
参照

GradientSection クラス
GradientSection メンバ

 

 


© 2004-2015, GrapeCity inc. All rights reserved.