返回一个
FillFormat 对象,该对象包含指定形状的填充格式属性。只读。
语法
表达式.Fill
表达式 一个代表 ShapeRange 对象的变量。
返回值
FillFormat
示例
以下示例向 myDocument
中添加一个矩形,然后设置该矩形的填充的前景色、背景色和渐变。
示例代码 |
let myDocument = ActivePresentation.Slides.Item(1)
let filler = myDocument.Shapes.AddShape(msoShapeRectangle, 90, 90, 90, 50).Fill
filler.ForeColor.RGB = (128, 0, 0)
filler.BackColor.RGB = (170, 170, 170)
filler.TwoColorGradient(msoGradientHorizontal, 1)
|