用小圖像平鋪的方式填充指定的圖形。如果要用單個大圖像填充圖形,可用 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