TextureType Property

Applies To

FillFormat object.

Description

Returns the texture type for the specified fill. Can be one of the following MsoTextureType constants: msoTexturePreset, msoTextureTypeMixed, or msoTextureUserDefined. Read-only Long.

This property is read-only. Use the PresetTextured, UserPicture, or UserTextured method to set the texture type for the fill.

Example

This example changes the fill for all shapes on myDocument with a custom textured fill to a canvas fill.

Set myDocument = ActiveDocument
For Each s In myDocument.Shapes
    With s.Fill
        If .TextureType = msoTextureUserDefined Then
            .PresetTextured msoTextureCanvas
        End If
    End With
Next