Spread Windows Forms 17
GrapeCity.Win.PluginInputMan Assembly / GrapeCity.Win.Spread.InputMan.CellType Namespace / GcComboBoxCellType Class / ListGradientEffect Property
Example


In This Topic
    ListGradientEffect Property (GcComboBoxCellType)
    In This Topic
    Gets or sets the background gradient effect.
    Syntax
    'Declaration
     
    
    Public Property ListGradientEffect As GradientEffect
    'Usage
     
    
    Dim instance As GcComboBoxCellType
    Dim value As GradientEffect
     
    instance.ListGradientEffect = value
     
    value = instance.ListGradientEffect
    public GradientEffect ListGradientEffect {get; set;}

    Property Value

    A GradientEffect value that indicates the background gradient effect of the control.
    The default is a null reference (Nothing in Visual Basic).
    Remarks
    このプロパティの値はドロップダウンリストウィンドウの背景に描画され、 BackgroundImageがそれをカバーしています。
    Example
    次のサンプルコードは、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
    See Also