TintAndShade Property

Microsoft Publisher Visual Basic

expression.TintAndShade

expression    Required. An expression that returns one of the objects in the Applies To list.

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