Share via


SystemPens.InfoText Proprietà

Definizione

Ottiene un oggetto Pen che corrisponde al colore del testo di una descrizione comandi.

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

Valore della proprietà

Pen

Oggetto Pen che corrisponde al colore del testo di una descrizione comandi.

Esempio

Nell'esempio di codice seguente viene illustrato come usare la InfoText proprietà. Per eseguire questo esempio, incollarlo in un Windows Form. Gestire l'evento del modulo e chiamare il DrawWithInfoTextPen metodo dal Paint metodo di gestione degli Paint eventi, passando e come PaintEventArgs.

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

Si applica a