PowerPoint) (FillFormat.TextureName 屬性
會傳回指定之填滿的自訂材質檔案名稱。 唯讀。
語法
運算式。TextureName
表達 代表 FillFormat 物件的 變數。
傳回值
字串
註解
這是唯讀屬性。 使用 UserTextured 方法可設定填滿圖樣的材質檔案。
範例
這個範例會在 myDocument 中新增一個橢圓形。 如果 myDocument 上的第一個圖案是以使用者自訂材質填滿,則新的橢圓形也會有相同的填滿。 如果第一個圖案為其他類型的填滿,則新的橢圓形將採用綠色大理石材質填滿。
Set myDocument = ActivePresentation.Slides(1)
With myDocument.Shapes
Set newFill = .AddShape(msoShapeOval, 0, 0, 200, 90).Fill
With .Item(1).Fill
If .Type = msoFillTextured And _
.TextureType = msoTextureUserDefined Then
newFill.UserTextured .TextureName
Else
newFill.PresetTextured msoTextureGreenMarble
End If
End With
End With
另請參閱
支援和意見反應
有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應。