Gets a list of pre-defined ColorDetail objects that can be used by page elements.

public static IList<ColorDetail> GetColorSet()

Return Value

A list of ColorDetail objects.
The complete set of pre-defined, named colors (aka the 'color set') used by the property editors can also be accessed by script. Each item in the color set is a ColorDetail object.
This example shows how to use the color set as a binding source for a ListBox control. The ListBox control uses a Script binding as its Items Source. Since ColorDetail objects are complex, the Display Member Path is set to display the Name of each ColorDetail object while the Selected Value Path references the Color property. When the user selects an item in the list, the selected value of the ListBox assumes the Color property of the selected ColorDetail object, which in turn is the source of the Simple binding for the light color.