PresetTextured 方法

       

将指定填充格式设为预设纹理。

expression.PresetTextured(PresetTexture)

expression   必需。表达式返回“应用于”列表中的一个对象。

PresetTexture   MsoPresetTexture 类型,必需。

示例

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

Set c1f = Charts(1).ChartArea.Fill
If c1f.Type = msoFillTextured Then
    With Charts(2).ChartArea.Fill
        .Visible = True
        If c1f.TextureType = msoTexturePreset Then
            .PresetTextured c1f.PresetTexture
        Else
            .UserTextured c1f.TextureName
        End If
    End With
End If