System.Windows.Forms.ControlPaint.DarkDark Method

Creates a new dark color object for the control from the specified color.

Syntax

public static System.Drawing.Color DarkDark (System.Drawing.Color baseColor)

Parameters

baseColor
The System.Drawing.Color to be darkened.

Returns

A System.Drawing.Color that represents the dark color on the control.

Remarks

If the specified System.Drawing.Color is one of the System.Drawing.SystemColors, the color is converted to the System.Drawing.SystemColors.ControlDarkDark color; otherwise, the color's luminosity value is increased.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0