WPS 基础接口 > 表格 API 参考 > FillFormat > 方法 > FillFormat.PresetTextured 方法
将指定填充格式设为预设纹理。

语法

表达式.PresetTextured(PresetTexture)

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

参数

名称 必选/可选 数据类型 说明
PresetTexture 必选 MsoPresetTexture 要应用的纹理类型。

示例

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

示例代码
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)
    }
}


请参阅