Partager via


ColorFormat.Brightness Property (Excel)

Returns or sets the luminosity of the specified object. Read/write

Version Information

Version Added: Excel 2010

Syntax

expression .Brightness

expression A variable that represents a ColorFormat object.

Return Value

Single

Remarks

The value for this property must be a number from 0.0 (dimmest) to 1.0 (brightest).

Example

The following code example sets the brightness of the fill color for the first shape in the active worksheet.

ActiveSheet.Shapes(1).Fill.ForeColor.Brightness = 0.5

See Also

Concepts

ColorFormat Object Members

ColorFormat Object