[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.Drawing.IColorFormat.Brightness

Brightness Property

Brightness

Gets or sets the brightness adjustment applied to this color.

Valid values range from -1.0 to 1.0, where 0.0 indicates that no brightness adjustment is applied, negative values darken the color, and positive values lighten the color.

Declaration
double Brightness { get; set; }
Property Brightness As Double
Examples
IShape shape = worksheet.Shapes.AddShape(AutoShapeType.Rectangle, 10, 10, 120, 60);
shape.Fill.Solid();
IColorFormat colorFormat = shape.Fill.Color;
colorFormat.ObjectThemeColor = ThemeColor.Accent2;
colorFormat.Brightness = 0.25;
double brightness = colorFormat.Brightness;