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
方法
屬性
- Application
- BackColor
- ForeColor
- GradientAngle
- GradientColorType
- GradientDegree
- GradientStyle
- GradientVariant
- Parent
- Pattern
- PresetGradientType
- PresetTexture
- RotateWithObject
- TextureAlignment
- TextureHorizontalScale
- TextureName
- TextureOffsetX
- TextureOffsetY
- TextureType
- TextureVerticalScale
- 透明
- Type
- Visible
另請參閱
支援和意見反應
有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應。
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應