Publisher) (FillFormat 物件

代表圖案的填滿格式。 圖案可為單色、漸層、材質、圖樣、圖片或半透明填滿。

註解

許多 FillFormat 物件的屬性是唯讀屬性。 若要設定的其中一個這些屬性,您必須套用的對應方法。

使用 Shape.Fill 屬性可傳回 FillFormat 物件。

範例

The following example adds a shape to the active document and then sets the gradient and color for the shape's fill.

Sub AddShapeAndSetFill() 
 With ActiveDocument.Pages(1).Shapes.AddShape(Type:=msoShapeHeart, _ 
 Left:=90, Top:=90, Width:=90, Height:=80).Fill 
 .ForeColor.RGB = RGB(Red:=255, Green:=0, Blue:=0) 
 .OneColorGradient Style:=msoGradientHorizontal, _ 
 Variant:=1, Degree:=1 
 End With 
End Sub

方法

屬性

另請參閱

支援和意見反應

有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應