Skybound VisualStyles

ThemePaint.GetColor Method 

Returns a color defined by the active theme for a specified control that supports visual styles.

[Visual Basic]
Public Shared Function GetColor( _
   ByVal control As Control, _
   ByVal themeClass As String, _
   ByVal themePart As Integer, _
   ByVal themeState As Integer, _
   ByVal color As ThemeColor _
) As Color
[C#]
public static Color GetColor(
   Control control,
   string themeClass,
   int themePart,
   int themeState,
   ThemeColor color
);

Parameters

control
The Control for which the color is returned.
themeClass
Specifies the class of control.
themePart
The ID of the part for which the color is returned.
themeState
The ID of the state for which the color is returned.
color
The color to retrieve.

Return Value

The color, or Empty if the color could not be obtained.

See Also

ThemePaint Class | Skybound.VisualStyles Namespace