FillFormat.PresetTextured 方法 (Publisher)

将指定填充设置为预设纹理。

语法

表达式PresetTextured (PresetTexture)

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

参数

名称 必需/可选 数据类型 说明
PresetTexture 必需 MsoPresetTexture 预设纹理。 可以是 Microsoft Office 类型库中声明的 MsoPresetTexture 常量之一。

示例

以下示例将一个具有绿色大理石纹理填充的矩形添加到当前出版物。

ActiveDocument.Pages(1).Shapes _ 
 .AddShape(Type:=msoShapeCan, _ 
 Left:=90, Top:=90, Width:=40, Height:=80) _ 
 .Fill.PresetTextured _ 
 PresetTexture:=msoTextureGreenMarble 

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。