[]
        
(Showing Draft Content)

C1.Win.Themes.C1Theme.GetEnum

GetEnum Method

GetEnum(string)

Gets an enumeration value specified by a path.

Declaration
public object GetEnum(string path)
Public Function GetEnum(path As String) As Object
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)
Public Function GetEnum(Of T)(path As String, defaultValue As T) As T
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