DrawingContext::DrawLine Method (Pen^, Point, Point)

 

Draws a line between the specified points using the specified Pen.

Namespace:   System.Windows.Media
Assembly:  PresentationCore (in PresentationCore.dll)

public:
virtual void DrawLine(
	Pen^ pen,
	Point point0,
	Point point1
) abstract

Parameters

pen
Type: System.Windows.Media::Pen^

The pen with which to stroke the line.

point0
Type: System.Windows::Point

The start point of the line.

point1
Type: System.Windows::Point

The end point of the line.

.NET Framework
Available since 3.0
Return to top
Show: