Table of Contents

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 string

The 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

schemeGroupId string

The color scheme group id

schemeId string

The color scheme id

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 ColorSchemeGroup

The color scheme group

colorSchemeId string

The color scheme id

Returns

ColorScheme

GetColorScheme(string, string)

Gets the color scheme

public static ColorScheme? GetColorScheme(string schemeGroupId, string colorSchemeId)

Parameters

schemeGroupId string

The color scheme group id

colorSchemeId string

The color scheme id

Returns

ColorScheme

GetColorSchemeGroup(string)

Gets the color scheme group by id

public static ColorSchemeGroup? GetColorSchemeGroup(string schemeGroupId)

Parameters

schemeGroupId string

The color scheme group id

Returns

ColorSchemeGroup

GetColorSchemeGroupNames()

Gets the color scheme group names - keys are the group Id, values are the group names.

public static IDictionary<string, string> GetColorSchemeGroupNames()

Returns

IDictionary<string, string>

GetColorSchemeUsageInfo(string, string)

Gets the list of using info of a ColorScheme

public static IEnumerable<ColorSchemeUsageInfo> GetColorSchemeUsageInfo(string schemeGroupId, string schemeId)

Parameters

schemeGroupId string

The color scheme group id

schemeId string

The color scheme id

Returns

IEnumerable<ColorSchemeUsageInfo>

Save(ColorSchemeGroup)

Saves the color scheme group

public static void Save(ColorSchemeGroup schemeGroup)

Parameters

schemeGroup ColorSchemeGroup

The color scheme group

To top