SystemPens.GradientInactiveCaption Propriedade
Definição
public:
static property System::Drawing::Pen ^ GradientInactiveCaption { System::Drawing::Pen ^ get(); };
public static System.Drawing.Pen GradientInactiveCaption { get; }
member this.GradientInactiveCaption : System.Drawing.Pen
Public Shared ReadOnly Property GradientInactiveCaption As Pen
Valor da propriedade
Uma estrutura Pen que é a cor mais clara no gradiente de cores da barra de título de uma janela inativa.A Pen that is the lightest color in the color gradient of an inactive window's title bar.
Exemplos
O exemplo de código a seguir demonstra como usar a GradientInactiveCaption propriedade.The following code example demonstrates how to use the GradientInactiveCaption property. Para executar este exemplo, Cole-o em um Windows Form.To run this example, paste it into a Windows Form. Manipule o evento do formulário Paint e chame o DrawWithGradientInactiveCaptionPen método do Paint método de manipulação de eventos, passando e como PaintEventArgs .Handle the form's Paint event and call the DrawWithGradientInactiveCaptionPen method from the Paint event-handling method, passing e as PaintEventArgs.
private void DrawWithGradientInactiveCaptionPen(PaintEventArgs e)
{
Rectangle rectangle1 = new Rectangle(10, 10, 100, 100);
e.Graphics.DrawRectangle(SystemPens.GradientInactiveCaption, rectangle1);
}
Private Sub DrawWithGradientInactiveCaptionPen(ByVal e As PaintEventArgs)
Dim rectangle1 As New Rectangle(10, 10, 100, 100)
e.Graphics.DrawRectangle(SystemPens.GradientInactiveCaption, rectangle1)
End Sub