Share via


ColorFormat.Brightness Property (Word)

Returns a Single that represents the brightness of a specified shape color. Read/write.

Version Information

Version Added: Word 2010

Syntax

expression .Brightness

expression A variable that represents a ColorFormat object.

Remarks

You can enter a number from -1 (darkest) to 1 (lightest) for the Brightness property, 0 (zero) being neutral.

Example

The following code example creates a new shape in the active document, sets the fill color, and brightens the color.

Sub NewTintedShape() 
 Dim shpHeart As Shape 
 
 Set shpHeart = ActiveDocument.Shapes _ 
 .AddShape(Type:=msoShapeHeart, Left:=150, _ 
 Top:=150, Width:=250, Height:=250) 
 With shpHeart.Fill.ForeColor 
 .RGB = RGB(Red:=255, Green:=28, Blue:=0) 
 .Brightness = 0.4 
 End With 
End Sub

See Also

Concepts

ColorFormat Object Members

ColorFormat Object