Table of Contents

Method AddColors

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

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 IListControl

Control instance which items will be filled with colors.

select bool

Specifies whether to select default item in the control.

defaultValue Color

Select 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 bool

Whether to process only colors which are visible to the end-user. Optional. Default is True.