'Declaration Public Overloads Sub DrawLine( _
ByVal penThe pen that determines the color, width, and style of the line.As IDrawingPen, _
ByVal p1The System.Drawing.PointF structure that represents the first point to connect.As System.Drawing.PointF, _
ByVal p2The System.Drawing.PointF structure that represents the second point to connect.As System.Drawing.PointF, _
ByVal startCapA line cap that should be used for drawing of start cap of line.As DrawingLineCap, _
ByVal endCapA line cap that should be used for drawing of end cap of line.As DrawingLineCap _
)
public void DrawLine(
IDrawingPen pen,
System.Drawing.PointF p1,
System.Drawing.PointF p2,
DrawingLineCap startCap,
DrawingLineCap endCap
)
public: void DrawLine(
IDrawingPen* pen,
System.Drawing.PointF p1,
System.Drawing.PointF p2,
DrawingLineCap* startCap,
DrawingLineCap* endCap
)
public:
void DrawLine(
IDrawingPen^ pen,
System.Drawing.PointF p1,
System.Drawing.PointF p2,
DrawingLineCap^ startCap,
DrawingLineCap^ endCap
)
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.