SystemPens.ControlLightLight 属性

定义

获取表示三维元素突出显示颜色的 Pen

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

属性值

Pen

Pen,它是三维元素的高光点颜色。

示例

下面的代码示例演示如何使用 ControlLightLight 属性。 若要运行此示例,请将其粘贴到 Windows 窗体中。 处理窗体的 Paint 事件,并从Paint事件处理方法调用 DrawWithControlLightLightPen 方法,作为 ePaintEventArgs传递。

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

注解

此颜色应用于最浅颜色的三维元素部分。

适用于