Class EditorHelpers
Inheritance
System.Object
EditorHelpers
Assembly: Emby.Web.GenericEdit.dll
Syntax
public static class EditorHelpers
Methods
BuildEditorId(String, String)
Declaration
public static string BuildEditorId(string parentId, string name)
Parameters
Type |
Name |
Description |
System.String |
parentId |
|
System.String |
name |
|
Returns
Type |
Description |
System.String |
|
GetColor(Enum)
Declaration
public static string GetColor(this Enum enumValue)
Parameters
Type |
Name |
Description |
System.Enum |
enumValue |
|
Returns
Type |
Description |
System.String |
|
GetDescription(Enum)
Gets the content of an enum member's System.ComponentModel.DescriptionAttribute, or its name in case there is none.
Declaration
public static string GetDescription(this Enum enumValue)
Parameters
Type |
Name |
Description |
System.Enum |
enumValue |
The enum value.
|
Returns
Type |
Description |
System.String |
|
GetDisplayName(Enum)
Declaration
public static string GetDisplayName(this Enum value)
Parameters
Type |
Name |
Description |
System.Enum |
value |
|
Returns
Type |
Description |
System.String |
|
Declaration
public static IList<EditorSelectOption> GetSelectOptionsFromEnumList(IEnumerable<Enum> enumValues)
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<System.Enum> |
enumValues |
|
Returns
Declaration
public static IList<EditorSelectOption> GetSelectOptionsFromEnumList<T>(IEnumerable<T> enumValues)
where T : struct, Enum
Parameters
Type |
Name |
Description |
System.Collections.Generic.IEnumerable<T> |
enumValues |
|
Returns
Type Parameters
Declaration
public static EditorRadioOption RadioOptionFromEnum<T>(this T enumValue)
where T : struct, Enum
Parameters
Type |
Name |
Description |
T |
enumValue |
|
Returns
Type Parameters
SplitByCasing(String)
Declaration
public static string SplitByCasing(this string input)
Parameters
Type |
Name |
Description |
System.String |
input |
|
Returns
Type |
Description |
System.String |
|