Method AddColors
AddColors(IListControl, bool, Color?, KnownColorCategory[]?, bool)
Initializes ListControl with list of known colors.
public static void AddColors(IListControl control, bool select = true, Color? defaultValue = null, KnownColorCategory[]? cats = null, bool onlyVisible = true)
Parameters
controlIListControlControl instance which items will be filled with colors.
selectboolSpecifies whether to select default item in the control.
defaultValueColorSelect this color in ListControl.
catsKnownColorCategory[]Array of categories to add colors from. Optional. If not specified, standard and web colors will be added.
onlyVisibleboolWhether to process only colors which are visible to the end-user. Optional. Default is True.