SystemPens.InfoText Propriedade

Definição

Obtém um Pen que é a cor do texto de uma dica de ferramenta.

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

Valor da propriedade

Pen

Um Pen que é a cor do texto de uma Dica de Ferramenta.

Exemplos

O exemplo de código a seguir demonstra como usar a InfoText propriedade . Para executar este exemplo, cole-o em um Formulário do Windows. Manipule o evento do Paint formulário e chame o DrawWithInfoTextPen método do Paint método de tratamento de eventos, passando e como 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

Aplica-se a