Table of contents
TOC
Collapse the table of content
Expand the table of content

ColorFormat.TintAndShade Property (Publisher)

office 365 dev account|Last Updated: 8/24/2017
|
3 Contributors

Returns or sets a Single that represents the lightening or darkening of a specified shape's color. Read/write.

Syntax

expression. TintAndShade

_expression_A variable that represents a ColorFormat object.

Return Value

Single

Remarks

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

Example

This example creates a new shape in the active document, sets the fill color, and lightens the color shade.

Sub NewTintedShape() 
 Dim shpHeart As Shape 
 Set shpHeart = ActiveDocument.Pages(1).Shapes _ 
 .AddShape(Type:=msoShapeHeart, Left:=150, _ 
 Top:=150, Width:=250, Height:=250) 
 With shpHeart.Fill.ForeColor 
 .CMYK.SetCMYK Cyan:=255, Magenta:=28, Yellow:=0, Black:=0 
 .TintAndShade = 0.3 
 End With 
End Sub
© 2018 Microsoft