Share via


Publisher) (FillFormat.PresetTextured 方法

會將指定的填滿設為某個預設材質。

語法

運算式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 支援與意見反應