Spread Windows Forms 15.0
GrapeCity.Win.PluginInputMan Assembly / GrapeCity.Win.Spread.InputMan.CellType Namespace / Bevel Structure / Darkness Property


In This Topic
    Darkness Property
    In This Topic
    Gets or sets the percentage used for calculating the color used for the shaded area of the bevel.
    Syntax
    'Declaration
     
    
    Public Property Darkness As Integer
    'Usage
     
    
    Dim instance As Bevel
    Dim value As Integer
     
    instance.Darkness = value
     
    value = instance.Darkness
    public int Darkness {get; set;}

    Property Value

    An integer value (between -100 through 100) that indicates the shading percentage.
    The default is -25.
    Remarks

    This property uses the color (Color property) of the object to calculate the shaded color for the bevel in percentages.

    If set to 0, the same color as the color object is used. When a positive value is set, a brighter color is used, and when a negative value is set, a color darker than the color is used.

    This property can be used with the Lightness property to make detailed adjustments to the brightness of the bevel color.

    See Also