FillFormat.UserTextured method (Publisher)

Fills the specified shape with small tiles of an image.

Syntax

expression.UserTextured (TextureFile)

expression A variable that represents a FillFormat object.

Parameters

Name Required/Optional Data type Description
TextureFile Required String The name of the texture file.

Remarks

To fill the shape with one large image, use the UserPicture method.

Example

This example adds two rectangles to the active publication. The rectangle on the left is filled with one large image of a picture; the rectangle on the right is filled with many small tiles of the same picture. Note that PathToFile must be replaced with a valid file path for this example to work.

With ActiveDocument.Pages(1).Shapes 
 .AddShape(Type:=msoShapeRectangle, _ 
 Left:=0, Top:=0, Width:=200, Height:=100).Fill _ 
 .UserPicture PictureFile:="PathToFile" 
 .AddShape(Type:=msoShapeRectangle, _ 
 Left:=300, Top:=0, Width:=200, Height:=100).Fill _ 
 .UserTextured TextureFile:="PathToFile" 
End With 

Support and feedback

Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.