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
control
IListControlControl instance which items will be filled with colors.
select
boolSpecifies whether to select default item in the control.
defaultValue
ColorSelect this color in ListControl.
cats
KnownColorCategory[]Array of categories to add colors from. Optional. If not specified, standard and web colors will be added.
onlyVisible
boolWhether to process only colors which are visible to the end-user. Optional. Default is True.