UserTextured 方法

       

用小图像平铺的方式填充指定的图形。如果要用单个大图像填充图形,可用 UserPicture 方法。

expression.UserTextured(TextureFile)

expression   必需。该表达式返回一个 ChartFillFormat 对象。

TextureFile   String 类型,必需。指定的图片文件的名称。

示例

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

With myChart.ChartArea.Fill
    If .Type = msoFillTextured Then
        If .TextureType = msoTextureUserDefined Then
            If .TextureName = "C:\brick.bmp" Then 
               .UserTextured "C:\stone.bmp"
            End If
        End If
    End If
End With