Fill 属性
适用于
AxisTitle 对象,ChartArea 对象,ChartTitle 对象,DataLabel 对象,DataLabels 集合对象,DisplayUnitLabel 对象,DownBars 对象,Floor 对象,Legend 对象,LegendKey 对象,PlotArea 对象,Point 对象,Series 对象,Shape 对象,ShapeRange 集合对象,UpBars 对象,Walls 对象
描述
返回 FillFormat 对象,该对象包含指定的图表或形状的填充格式属性。只读。
示例
本示例向 myDocument 中添加矩形,然后设置该矩形的填充格式的前景颜色、背景颜色和渐进色。
Set myDocument = Worksheets(1)
With myDocument.Shapes.AddShape(msoShapeRectangle, 90, 90, 90, 50).Fill
.ForeColor.RGB = RGB(128, 0, 0)
.BackColor.RGB = RGB(170, 170, 170)
.TwoColorGradient msoGradientHorizontal, 1
End With