饼形

RenderPie用于打印饼形,定义一个饼形的语法是:

New prt.RenderPie (Width, Height, startAngle, sweepAngle, Line, FillColor)

Width:     宽度
Height:     高度
startAngle: 起始角度
sweepAngle: 扫过的角度值
Line:       边框线条类型,LineDef型枚举,可选参数
FillColor:  填充颜色,可选参数

示例

Dim doc As New PrintDoc
Dim
pie As New prt.RenderPie(20,20, 50, 50, 0, -45, new prt.Linedef(Color.Red), Color.Red)
pie.x =
30
pie.y =
40
doc.Body.Children.Add(pie)
Doc.Preview()

执行结果:


本页地址:http://www.foxtable.com/webhelp/topics/1229.htm