TextureName 属性

返回指定填充的自定义纹理文件名。String 类型,只读。

本属性为只读属性。可用 UserPictureUserTextured 方法设置填充格式的纹理文件。

示例

本示例更改图表填充格式的自定义纹理类型。

With myChart.ChartArea.Fill

    If .Type = msoFillTextured Then

        If .TextureType = msoTextureUserDefined Then

            If .TextureName = "brick.bmp" Then

               .UserTextured "stone.bmp"

            End If

        End If

    End If

End With