WPS 基础接口 > 表格 API 参考 > FillFormat > 属性 > FillFormat.TextureName 属性
返回指定填充的自定义纹理文件名称。String 型,只读。

语法

表达式.TextureName

表达式   一个代表 FillFormat 对象的变量。

说明

使用 UserPictureUserTextured 方法可设置填充的纹理文件。

示例

本示例以第一个图表中使用的填充样式对第二个图表的填充格式进行设置。

示例代码
let c1f = Charts.Item(1).ChartArea.Fill
if(c1f.Type == msoFillTextured) {
    let c2f = Charts.Item(2).ChartArea.Fill
        c2f.Visible = true
        if(c1f.TextureType == msoTexturePreset) {
            c2f.PresetTextured(c1f.PresetTexture)
        }
        else {
            c2f.UserTextured(c1f.TextureName)
        }
}


请参阅