Share via


ChartFillFormat.TextureName Property

Returns the name of the custom texture file 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 TextureName As String
    Get
'Usage
Dim instance As ChartFillFormat
Dim value As String

value = instance.TextureName
string TextureName { get; }

Property Value

Type: System.String
String

Remarks

This property is read-only. Use the UserTextured(String) method to set the texture file for the fill.

Examples

This example adds an oval to myDocument. If shape one on myDocument has a user-defined textured fill, the new oval will have the same fill as shape one. If shape one has any other type of fill, the new oval will have a green marble fill.

Set myDocument = ActivePresentation.Slides(1)

With myDocument.Shapes

    Set newFill = .AddShape(msoShapeOval, 0, 0, 200, 90).Fill

    With .Item(1).Fill

        If .Type = msoFillTextured And _

                .TextureType = msoTextureUserDefined Then

            newFill.UserTextured .TextureNameElse

            newFill.PresetTextured msoTextureGreenMarble

        End If

    End With

End With

See Also

Reference

ChartFillFormat Interface

ChartFillFormat Members

Microsoft.Office.Interop.PowerPoint Namespace