SystemPens.ControlDarkDark 属性

定义

获取表示三维元素暗阴影颜色的 Pen

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

属性值

Pen

一个 Pen,它是三维元素的暗阴影颜色。

示例

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

private void DrawWithControlDarkDarkPen(PaintEventArgs e)
{
    Rectangle rectangle1 = new Rectangle(10, 10, 100, 100);
    e.Graphics.DrawRectangle(SystemPens.ControlDarkDark, rectangle1);
}
Private Sub DrawWithControlDarkDarkPen(ByVal e As PaintEventArgs) 
    Dim rectangle1 As New Rectangle(10, 10, 100, 100)
    e.Graphics.DrawRectangle(SystemPens.ControlDarkDark, rectangle1)

End Sub

注解

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

适用于