以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  专业报表中饼形示例参数与语法中参数是不是一致?  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=130889)

--  作者:yangheqing
--  发布时间:2019/2/10 20:28:00
--  专业报表中饼形示例参数与语法中参数是不是一致?

饼形

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()

求老师解惑,Dim pie As New prt.RenderPie(20,2050500, -45new prt.Linedef(Color.Red), Color.Red)中

(20,205050,……)是不是对应宽度和高度,还是对应坐标点,请老师指导!谢谢。


--  作者:有点甜
--  发布时间:2019/2/10 20:44:00
--  

坐标点,是 pie.x 和 pic.y

 

RenderPie最前面的两个数值,也可以作为坐标点


--  作者:yangheqing
--  发布时间:2019/2/10 20:54:00
--  
甜老师,那(20,205050,……)对应的参数是什么,与语法中的什么参数对应?请指教!
--  作者:有点甜
--  发布时间:2019/2/11 9:05:00
--  

RenderPie(横坐标, 纵坐标, 宽度, 高度, ......)