Share via


ChartFillFormat.TextureType Property

Returns the texture type for the specified fill. Read-only.

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)

Syntax

'Declaration
ReadOnly Property TextureType As MsoTextureType
    Get
'Usage
Dim instance As ChartFillFormat
Dim value As MsoTextureType

value = instance.TextureType
MsoTextureType TextureType { get; }

Property Value

Type: Microsoft.Office.Core.MsoTextureType
MsoTextureType

Remarks

Use the PresetTextured(MsoPresetTexture) or UserTextured(String) method to set the texture type for the fill.

The value of the TextureType property can be one of these MsoTextureType constants.

msoTexturePreset

msoTextureTypeMixed

msoTextureUserDefined

Examples

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

Set myDocument = ActivePresentation.Slides(1)

For Each s In myDocument.Shapes

    With s.Fill

        If .TextureType= msoTextureUserDefined Then

            .PresetTextured msoTextureCanvas

        End If

    End With

Next

    

See Also

Reference

ChartFillFormat Interface

ChartFillFormat Members

Microsoft.Office.Interop.PowerPoint Namespace