DrawingContext.DrawLine DrawingContext.DrawLine DrawingContext.DrawLine Method

Definition

Draws a line with the specified Pen.

Overloads

DrawLine(Pen, Point, Point) DrawLine(Pen, Point, Point) DrawLine(Pen, Point, Point)

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

DrawLine(Pen, Point, AnimationClock, Point, AnimationClock) DrawLine(Pen, Point, AnimationClock, Point, AnimationClock) DrawLine(Pen, Point, AnimationClock, Point, AnimationClock)

Draws a line between the specified points using the specified Pen and applies the specified animation clocks.

DrawLine(Pen, Point, Point) DrawLine(Pen, Point, Point) DrawLine(Pen, Point, Point)

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

public:
 abstract void DrawLine(System::Windows::Media::Pen ^ pen, System::Windows::Point point0, System::Windows::Point point1);
public abstract void DrawLine (System.Windows.Media.Pen pen, System.Windows.Point point0, System.Windows.Point point1);
abstract member DrawLine : System.Windows.Media.Pen * System.Windows.Point * System.Windows.Point -> unit

Parameters

pen
Pen Pen Pen

The pen with which to stroke the line.

point0
Point Point Point

The start point of the line.

point1
Point Point Point

The end point of the line.

DrawLine(Pen, Point, AnimationClock, Point, AnimationClock) DrawLine(Pen, Point, AnimationClock, Point, AnimationClock) DrawLine(Pen, Point, AnimationClock, Point, AnimationClock)

Draws a line between the specified points using the specified Pen and applies the specified animation clocks.

public:
 abstract void DrawLine(System::Windows::Media::Pen ^ pen, System::Windows::Point point0, System::Windows::Media::Animation::AnimationClock ^ point0Animations, System::Windows::Point point1, System::Windows::Media::Animation::AnimationClock ^ point1Animations);
public abstract void DrawLine (System.Windows.Media.Pen pen, System.Windows.Point point0, System.Windows.Media.Animation.AnimationClock point0Animations, System.Windows.Point point1, System.Windows.Media.Animation.AnimationClock point1Animations);
abstract member DrawLine : System.Windows.Media.Pen * System.Windows.Point * System.Windows.Media.Animation.AnimationClock * System.Windows.Point * System.Windows.Media.Animation.AnimationClock -> unit

Parameters

pen
Pen Pen Pen

The pen to stroke the line.

point0
Point Point Point

The start point of the line.

point0Animations
AnimationClock AnimationClock AnimationClock

The clock with which to animate the start point of the line, or null for no animation. This clock must be created from an AnimationTimeline that can animate Point objects.

point1
Point Point Point

The end point of the line.

point1Animations
AnimationClock AnimationClock AnimationClock

The clock with which to animate the end point of the line, or null for no animation. This clock must be created from an AnimationTimeline that can animate Point objects.

Applies to