SystemPens.InfoText Propriété

Définition

Obtient un Pen qui correspond à la couleur du texte d'une info-bulle.

public:
 static property System::Drawing::Pen ^ InfoText { System::Drawing::Pen ^ get(); };
public static System.Drawing.Pen InfoText { get; }
static member InfoText : System.Drawing.Pen
Public Shared ReadOnly Property InfoText As Pen

Valeur de propriété

Pen

Pen qui est la couleur du texte d'une info-bulle.

Exemples

L’exemple de code suivant montre comment utiliser la InfoText propriété . Pour exécuter cet exemple, collez-le dans un Windows Form. Gérez l’événement du Paint formulaire et appelez la DrawWithInfoTextPen méthode à partir de la Paint méthode de gestion des événements, en passant comme ePaintEventArgs.

private void DrawWithInfoTextPen(PaintEventArgs e)
{
    Rectangle rectangle1 = new Rectangle(10, 10, 100, 100);
    e.Graphics.DrawRectangle(SystemPens.InfoText, rectangle1);
}
Private Sub DrawWithInfoTextPen(ByVal e As PaintEventArgs) 
    Dim rectangle1 As New Rectangle(10, 10, 100, 100)
    e.Graphics.DrawRectangle(SystemPens.InfoText, rectangle1)

End Sub

S’applique à