CoverMode Property

The CoverMode property returns or sets the picture pattern Cover mode to Stretch or Tile. Returns a Long.

Syntax

object.CoverMode( CoverMode )

 

Parameter Type Description
CoverMode grfCoverMode required, default=grfStretchMode

 

Remarks

You must fill an object with a picture pattern (PatternName property) to display the cover mode. Not all objects can have picture patterns. For example, 3D XYY bar charts cannot be filled with picture patterns.

Example 1

This example shows how to return the Cover mode of a filled rectangle.

'Return the cover mode

Debug.Print "Cover Mode = "; Rectangle.Fill.CoverMode

Example 2

This example shows how to set the Cover mode to Tiled.

'Set the cover mode to tiled

Rectangle.Fill.CoverMode = grfTileMode

 

Used by: AutoFill object