Parameters
- pen
- The pen that determines the color, width, and style of the line.
- p1
- The System.Drawing.PointF structure that represents the first point to connect.
- p2
- The System.Drawing.PointF structure that represents the second point to connect.
- startCap
- A line cap that should be used for drawing of start cap of line.
- endCap
- A line cap that should be used for drawing of end cap of line.