SystemPens.ControlLightLight Propriedade
Definição
public:
static property System::Drawing::Pen ^ ControlLightLight { System::Drawing::Pen ^ get(); };
public static System.Drawing.Pen ControlLightLight { get; }
member this.ControlLightLight : System.Drawing.Pen
Public Shared ReadOnly Property ControlLightLight As Pen
Valor da propriedade
Um Pen que é a cor de realce de um elemento 3D.A Pen that is the highlight color of a 3-D element.
Exemplos
O exemplo de código a seguir demonstra como usar a ControlLightLight propriedade.The following code example demonstrates how to use the ControlLightLight 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 DrawWithControlLightLightPen método do Paint método de manipulação de eventos, passando e como PaintEventArgs .Handle the form's Paint event and call the DrawWithControlLightLightPen method from the Paint event-handling method, passing e as PaintEventArgs.
private void DrawWithControlLightLightPen(PaintEventArgs e)
{
Rectangle rectangle1 = new Rectangle(10, 10, 100, 100);
e.Graphics.DrawRectangle(SystemPens.ControlLightLight, rectangle1);
}
Private Sub DrawWithControlLightLightPen(ByVal e As PaintEventArgs)
Dim rectangle1 As New Rectangle(10, 10, 100, 100)
e.Graphics.DrawRectangle(SystemPens.ControlLightLight, rectangle1)
End Sub
Comentários
Essa cor é aplicada às partes de um elemento 3D que são a cor mais clara.This color is applied to the parts of a 3-D element that are the lightest color.