Share via


Publisher) (FillFormat.TextureType 屬性

會傳回指出指定填滿之材質類型的 MsoTextureType 常數。 唯讀。

語法

運算式TextureType

表達 代表 FillFormat 物件的 變數。

傳回值

MsoTextureType

註解

這是唯讀屬性。 使用 PresetTexturedUserTextured 方法,即可設定填滿的材質類型。

屬性值可以是 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 支援與意見反應