Share via


FillFormat.TextureType Property

Publisher Developer Reference

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 PresetTextured or 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.

Constant Description
msoTexturePreset The fill uses a preset texture type.
msoTextureTypeMixed Indicates a combination of texture types for the specified shape range..
msoTextureUserDefined The 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.

Visual Basic for Applications
  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

See Also