[]
        
(Showing Draft Content)

C1.Win.C1Themes.C1Theme.GetEnum

GetEnum Method

GetEnum(string)

Gets an enumeration value specified by a path.

Declaration
public object GetEnum(string path)
Parameters
Type Name Description
string path

The target path.

Returns
Type Description
object

The enum value specified by path.

GetEnum<T>(string, T)

Gets an enumeration value specified by a path.

Declaration
public T GetEnum<T>(string path, T defaultValue)
Parameters
Type Name Description
string path

The target path.

T defaultValue

Used if value at specified path does not exist.

Returns
Type Description
T

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

Type Parameters
Name Description
T