Publisher) (FillFormat.TextureType 属性

返回指示指定填充的纹理类型的 MsoTextureType 常量。 此为只读属性。

语法

表达式。TextureType

表达式 表示 FillFormat 对象的变量。

返回值

MsoTextureType

备注

此属性为只读。 使用 PresetTextured 或 UserTextured 方法设置填充的纹理类型。

属性值可以是在 Microsoft Office 类型库中声明的 MsoTextureType 常量之一。

示例

本示例对当前出版物的第一页上当前具有用户定义纹理填充的所有形状的填充应用画布纹理。

Dim shpLoop As Shape 
 
For Each shpLoop In ActiveDocument.Pages(1).Shapes 
 With shpLoop.Fill 
 If .TextureType = msoTextureUserDefined Then 
 .PresetTextured _ 
 PresetTexture:=msoTextureCanvas 
 End If 
 End With 
Next shpLoop

支持和反馈

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