|
各位老师好,向各位请教:
我用BuildFreeform画圆,画的挺圆的,给圆填充颜色发现问题,圆内出现一条线。怎么去掉这条线?是不是起点左边有问题?
我的程序如下:
- Sub 画圆()
- Dim x(0 To 500)
- Dim y(0 To 500)
- With ActiveDocument.Shapes.BuildFreeform(msoEditingAuto, 600, 270)
- pi = 180: r = 60
- For i = 0 To 2 * pi Step 0.5
- x(i) = r * Cos(i)
- y(i) = r * Sin(i)
-
- .AddNodes msoSegmentLine, msoEditingAuto, 600 + x(i), 270 + y(i)
- Next
- .ConvertToShape.Select
- Selection.ShapeRange.Fill.ForeColor.RGB = RGB(255, 0, 0)
- Selection.ShapeRange.Line.DashStyle = msoLineSolid
- Selection.ShapeRange.Line.ForeColor.RGB = RGB(0, 0, 255)
- Selection.ShapeRange.Line.BackColor.RGB = RGB(255, 255, 255)
- End With
- End Sub
复制代码 请各位帮忙修改,谢谢。 |
|