UserTextured 方法

此頁沒有內(nèi)容條目
內(nèi)容

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