Table of Contents

Method AddColorNames

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

AddColorNames(ComboBox, bool, Color?, bool)

Initializes ComboBox with list of known color names (Web and Standard colors are used).

public static void AddColorNames(ComboBox control, bool select = true, Color? defaultValue = null, bool onlyVisible = true)

Parameters

control ComboBox

Control instance which items will be filled with color names.

select bool

Specifies whether to select default item in the control.

defaultValue Color

Select this color name in ComboBox.

onlyVisible bool

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