Version

GetActualColor Method

Returns a color with the current rgb value for the specified named color.
Syntax
'Declaration
 
Public Shared Function GetActualColor( _
   ByVal namedColor As Color _
) As Color
public static Color GetActualColor( 
   Color namedColor
)

Parameters

namedColor
Color to evaluate

Return Value

A color whose argb value is set to the current resolved color for the specified named color. The namedColor is returned if the color is not a named color or is a known color. Color.Empty is returned for an unrecognized named color.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also