DrawingContext.DrawLine Méthode

Définition

Dessine une ligne avec le Penspécifié.

Surcharges

DrawLine(Pen, Point, Point)

Dessine une ligne entre les points spécifiés à l'aide du Pen spécifié.

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

Dessine une ligne entre les points spécifiés à l'aide du Pen spécifié et applique les horloges d'animation spécifiées.

DrawLine(Pen, Point, Point)

Dessine une ligne entre les points spécifiés à l'aide du Pen spécifié.

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
Public MustOverride Sub DrawLine (pen As Pen, point0 As Point, point1 As Point)

Paramètres

pen
Pen

Stylet avec lequel rayer la ligne.

point0
Point

Point de départ de la ligne.

point1
Point

Extrémité de la ligne.

S’applique à

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

Dessine une ligne entre les points spécifiés à l'aide du Pen spécifié et applique les horloges d'animation spécifiées.

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
Public MustOverride Sub DrawLine (pen As Pen, point0 As Point, point0Animations As AnimationClock, point1 As Point, point1Animations As AnimationClock)

Paramètres

pen
Pen

Stylet pour rayer la ligne.

point0
Point

Point de départ de la ligne.

point0Animations
AnimationClock

Horloge avec laquelle animer le point de départ de la ligne, ou null pour aucune animation. Cette horloge doit être créée à partir d'un AnimationTimeline qui peut animer des objets Point.

point1
Point

Extrémité de la ligne.

point1Animations
AnimationClock

Horloge avec laquelle animer le point de terminaison de la ligne, ou null pour aucune animation. Cette horloge doit être créée à partir d'un AnimationTimeline qui peut animer des objets Point.

S’applique à