Table of contents
TOC
折叠目录
展开目录

对象 (发布服务器)FillFormat Object (Publisher)

office 365 dev account|上次更新日期: 2018/3/13
|
3 参与人员

代表形状的填充格式设置。形状可以具有纯色、渐变、纹理、图案、图片或半透明的填充。Represents fill formatting for a shape. A shape can have a solid, gradient, texture, pattern, picture, or semitransparent fill.

注解Remarks

许多对象的属性是只读的。若要设置这些属性,必须应用相应的方法。Many of the properties of the FillFormat object are read-only. To set one of these properties, you have to apply the corresponding method.

示例Example

使用填充属性可返回的相关对象。下面的示例向活动文档添加一个形状,然后设置渐变和形状的填充颜色。Use the Fill property to return a FillFormat object. 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

方法Methods

名称Name
属性OneColorGradient
带图案Patterned
只读PresetGradient
PresetTexturedPresetTextured
稳定Solid
TwoColorGradientTwoColorGradient
UserPictureUserPicture
UserTexturedUserTextured

属性Properties

名称Name
ApplicationApplication
背景色BackColor
前景色ForeColor
GradientAngleGradientAngle
GradientColorTypeGradientColorType
GradientDegreeGradientDegree
GradientStyleGradientStyle
GradientVariantGradientVariant
ParentParent
模式Pattern
PresetGradientTypePresetGradientType
PresetTexturePresetTexture
RotateWithObjectRotateWithObject
TextureAlignmentTextureAlignment
TextureHorizontalScaleTextureHorizontalScale
TextureNameTextureName
TextureOffsetXTextureOffsetX
TextureOffsetYTextureOffsetY
TextureTypeTextureType
TextureVerticalScaleTextureVerticalScale
透明度Transparency
类型Type
VisibleVisible
© 2018 Microsoft