设置或返回一个值,该值代表应用于指定填充的图案。使用
BackColor 和
ForeColor 属性可设置图案中使用的颜色。只读。
MsoPatternType 类型。
语法
表达式.Pattern
表达式 一个代表 FillFormat 对象的变量。
示例
本示例向 myDocument
中添加一个矩形,并设置其填充图案与名为“rect1”的形状保持一致。新矩形使用和 rect1 相同的图案,但颜色未必相同。通过
BackColor 和 ForeColor 属性可设置该图案中使用的颜色。
示例代码 |
let myDocument = ActivePresentation.Slides.Item(1)
let dShapes = myDocument.Shapes
let pattern1 = dShapes.Item("rect1").Fill.Pattern
let fillShapes = dShapes.AddShape(msoShapeRectangle, 100, 100, 120, 80).Fill
fillShapes.ForeColor.RGB = (128, 0, 0)
fillShapes.BackColor.RGB = (0, 0, 255)
fillShapes.Patterned(pattern1)
|