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

FillFormat.TextureType Property (Publisher)

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

Returns an MsoTextureType constant indicating the texture type for the specified fill. Read-only.

Syntax

expression. TextureType

_expression_A variable that represents a FillFormat object.

Return Value

MsoTextureType

Remarks

This property is read-only. Use the PresetTexturedor UserTextured method to set the texture type for the fill.

The property value can be one of the MsoTriState constants declared in the Microsoft Office type library and shown in the following table.

ConstantDescription
msoTexturePresetThe fill uses a preset texture type.
msoTextureTypeMixedIndicates a combination of texture types for the specified shape range..
msoTextureUserDefinedThe fill uses a user-defined texture type.

Example

This example applies a canvas texture to the fill for all shapes on the first page of the active publication that currently have fills with a user-defined texture.

Dim shpLoop As Shape 

For Each shpLoop In ActiveDocument.Pages(1).Shapes 
 With shpLoop.Fill 
 If .TextureType = msoTextureUserDefined Then 
 .PresetTextured _ 
 PresetTexture:=msoTextureCanvas 
 End If 
 End With 
Next shpLoop
© 2018 Microsoft