Share via


SystemPens.ControlLightLight 屬性

定義

取得 Pen,其為 3D 項目的醒目提示色彩。

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,為 3D 項目的反白顯示色彩。

範例

下列程式代碼範例示範如何使用 ControlLightLight 屬性。 若要執行此範例,請將它貼到 Windows Form 中。 處理表單的事件 Paint ,並從事件處理方法呼叫 DrawWithControlLightLightPen 方法 Paint ,並傳遞 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

備註

此色彩會套用至最淺色彩的 3D 元素部分。

適用於