MESCIUS SPREAD for Windows Forms 15.0J
GradientEffect コンストラクタ(GradientStyle,GradientDirection,Color,Color)
使用例 

グラデーションのスタイルを示します。
グラデーションの方向を示します。
グラデーションの開始色を示します。
グラデーションの終了色を示します。
特定の値を使用してGradientEffectクラスのインスタンスを初期化します。
構文
'宣言
 
Public Function New( _
   ByVal style As GradientStyle, _
   ByVal direction As GradientDirection, _
   ByVal startColor As Color, _
   ByVal endColor As Color _
)

パラメータ

style
グラデーションのスタイルを示します。
direction
グラデーションの方向を示します。
startColor
グラデーションの開始色を示します。
endColor
グラデーションの終了色を示します。
使用例
次のサンプルコードは、グラデーションを設定します。
GrapeCity.Win.Spread.InputMan.CellType.GcComboBoxCellType gccombo = new GrapeCity.Win.Spread.InputMan.CellType.GcComboBoxCellType();
gccombo.DropDownStyle = ComboBoxStyle.DropDownList;
gccombo.ListGradientEffect = new GrapeCity.Win.Spread.InputMan.CellType.GradientEffect(GrapeCity.Win.Spread.InputMan.CellType.GradientStyle.Circular, GrapeCity.Win.Spread.InputMan.CellType.GradientDirection.Backward, Color.Blue, Color.Yellow);
gccombo.Items.AddRange(new string[] { "Feta", "Havarti", "Swiss" });
fpSpread1.Sheets[0].Cells[1, 1].CellType = gccombo;
Dim gccombo As New GrapeCity.Win.Spread.InputMan.CellType.GcComboBoxCellType()
gccombo.DropDownStyle = ComboBoxStyle.DropDownList
gccombo.ListGradientEffect = New GrapeCity.Win.Spread.InputMan.CellType.GradientEffect(GrapeCity.Win.Spread.InputMan.CellType.GradientStyle.Circular, GrapeCity.Win.Spread.InputMan.CellType.GradientDirection.Backward, Color.Blue, Color.Yellow)
gccombo.Items.AddRange(New String() {"Feta", "Havarti", "Swiss"})
FpSpread1.Sheets(0).Cells(1, 1).CellType = gccombo
参照

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

 

 


© MESCIUS inc. All rights reserved.