GrapeCity SPREAD for Windows Forms 11.0J
ListGradientEffect プロパティ


背景グラデーション効果を取得または設定します。
構文
'Declaration
 
Public Property ListGradientEffect As GradientEffect
'使用法
 
Dim instance As GcComboBoxCellType
Dim value As GradientEffect
 
instance.ListGradientEffect = value
 
value = instance.ListGradientEffect
public GradientEffect ListGradientEffect {get; set;}

プロパティ値

コントロールの背景グラデーション効果を示すGradientEffect値。
デフォルト値はnull 参照 (Visual Basicでは Nothing)です。
解説
このプロパティの値に従ってドロップダウンリストウィンドウの背景にグラデーションが描画されます。ただし、このグラデーションはInputManCellTypeBase.BackgroundImageによって覆われます。
次のサンプルコードは、ListGradientEffectプロパティを設定します。
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
参照

GcComboBoxCellType クラス
GcComboBoxCellType メンバ

 

 


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