Class ColorSchemeHelper
- Namespace
- Dynamicweb.Content.ColorSchemes
- Assembly
- Dynamicweb.dll
Helper class with supporting methods to work with color schemes.
public static class ColorSchemeHelper
- Inheritance
-
ColorSchemeHelper
- Inherited Members
Methods
Delete(string)
Deletes the color scheme group by id
public static void Delete(string schemeGroupId)
Parameters
schemeGroupId
stringThe color scheme group id
Exceptions
- ArgumentNullException
- InvalidOperationException
Thrown if the deleted color group is used
Delete(string, string)
Deletes the color scheme
public static void Delete(string schemeGroupId, string schemeId)
Parameters
Exceptions
- ArgumentNullException
- InvalidOperationException
Thrown if the deleted color is used
GetColorScheme(ColorSchemeGroup, string)
Gets the color scheme
public static ColorScheme? GetColorScheme(ColorSchemeGroup schemeGroup, string colorSchemeId)
Parameters
schemeGroup
ColorSchemeGroupThe color scheme group
colorSchemeId
stringThe color scheme id
Returns
GetColorScheme(string, string)
Gets the color scheme
public static ColorScheme? GetColorScheme(string schemeGroupId, string colorSchemeId)
Parameters
Returns
GetColorSchemeGroup(string)
Gets the color scheme group by id
public static ColorSchemeGroup? GetColorSchemeGroup(string schemeGroupId)
Parameters
schemeGroupId
stringThe color scheme group id
Returns
GetColorSchemeGroupNames()
Gets the color scheme group names - keys are the group Id, values are the group names.
public static IDictionary<string, string> GetColorSchemeGroupNames()
Returns
GetColorSchemeUsageInfo(string, string)
Gets the list of using info of a ColorScheme
public static IEnumerable<ColorSchemeUsageInfo> GetColorSchemeUsageInfo(string schemeGroupId, string schemeId)
Parameters
Returns
Save(ColorSchemeGroup)
Saves the color scheme group
public static void Save(ColorSchemeGroup schemeGroup)
Parameters
schemeGroup
ColorSchemeGroupThe color scheme group