Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

ControlPaint.Light Method (Color, Single)

Creates a new light color object for the control from the specified color and lightens it by the specified percentage.

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

public static Color Light(
	Color baseColor,
	float percOfLightLight


Type: System.Drawing.Color

The Color to be lightened.

Type: System.Single

The percentage to lighten the specified Color.

Return Value

Type: System.Drawing.Color
A Color that represents the light color on the control.

If the specified Color is one of the SystemColors, the color is converted to a SystemColors.ControlLight color; otherwise, the color's luminosity value is decreased.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
© 2015 Microsoft