有两种调用方法:
DrawLines(Pen,Point())
DrawLines(Pen,PointF())Pen是画笔,设置线条的颜色、粗细等
Point()、PointF()是点坐标数组,其第一个元素为起始点,第二个元素为第二个点,依次类推
见示例:
Public Sub DrawLinesPointF(e As PaintEventArgs)' Create pen.Dim blackPen As New Pen(Color.Black, 3)' Create array of points that define lines to draw.Dim points As PointF() =  {New PointF(10F, 10F), _New PointF(10F, 100F), New PointF(200F, 50F), _New PointF(250F, 300F)}'Draw lines to screen.e.Graphics.DrawLines(blackPen, points)End Sub