ControlPaint.DarkDark Method (Color)

 

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

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public static Color DarkDark(
	Color baseColor
)

Parameters

baseColor
Type: System.Drawing.Color

The Color to be darkened.

Return Value

Type: System.Drawing.Color

A Color that represents the dark color on the control.

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

.NET Framework
Available since 1.1
Return to top
Show: