[]
        
(Showing Draft Content)

C1.Win.Themes.C1Theme.GetColor

GetColor Method

GetColor(string)

Gets a Color value specified by a path.

Declaration
public Color GetColor(string path)
Public Function GetColor(path As String) As Color
Parameters
Type Name Description
string path

The target path.

Returns
Type Description
Color

The color specified by path.

GetColor(string, Color)

Gets a Color value specified by a path.

Declaration
public Color GetColor(string path, Color defaultValue)
Public Function GetColor(path As String, defaultValue As Color) As Color
Parameters
Type Name Description
string path

The target path.

Color defaultValue

Used if value at specified path does not exist.

Returns
Type Description
Color

The color specified by path or if value at specified path does not exist.