DrawingContext.DrawLine Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Dessine une ligne avec le Pen.
Surcharges
| Nom | Description |
|---|---|
| DrawLine(Pen, Point, Point) |
Dessine une ligne entre les points spécifiés à l’aide de l’élément spécifié Pen. |
| DrawLine(Pen, Point, AnimationClock, Point, AnimationClock) |
Dessine une ligne entre les points spécifiés à l’aide de l’horloge d’animation spécifiée Pen et applique les horloges d’animation spécifiées. |
DrawLine(Pen, Point, Point)
Dessine une ligne entre les points spécifiés à l’aide de l’élément spécifié 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
Public MustOverride Sub DrawLine (pen As Pen, point0 As Point, point1 As Point)
Paramètres
- pen
- Pen
Stylet avec lequel traiter la ligne.
- point0
- Point
Point de départ de la ligne.
- point1
- Point
Point de fin de la ligne.
S’applique à
DrawLine(Pen, Point, AnimationClock, Point, AnimationClock)
Dessine une ligne entre les points spécifiés à l’aide de l’horloge d’animation spécifiée Pen 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 à traiter 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 objet qui peut animer Point des objets.
- point1
- Point
Point de fin de la ligne.
- point1Animations
- AnimationClock
Horloge avec laquelle animer le point de fin de la ligne, ou null pour aucune animation. Cette horloge doit être créée à partir d’un AnimationTimeline objet qui peut animer Point des objets.