Class ColorPickerPopup
A window that allows a user to select a color in various ways.
Implements
Inherited Members
Namespace: SadConsole.UI.Windows
Assembly: SadConsole.Extended.dll
Syntax
public class ColorPickerPopup : Window, IDisposable, IScreenSurfaceEditable, IScreenSurface, IScreenObject, IPositionable, IComponentHost, ISurface, ISurfaceSettable, IWindowData
Constructors
ColorPickerPopup()
Creates a new instance of the window.
Declaration
public ColorPickerPopup()
Properties
PreviousColors
An array of colors previously selected.
Declaration
public Color[] PreviousColors { get; }
Property Value
Type | Description |
---|---|
Color[] |
SelectedColor
The color selected.
Declaration
public Color SelectedColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
Methods
AddPreviousColor(Color)
Adds a color to the array of previous colors.
Declaration
public void AddPreviousColor(Color color)
Parameters
Type | Name | Description |
---|---|---|
Color | color |
DrawBorder()
Draws the border lines around the controls.
Declaration
protected override void DrawBorder()
Overrides
Show(bool)
Displays this window.
Declaration
public override void Show(bool modal)
Parameters
Type | Name | Description |
---|---|---|
bool | modal | When true, the window will be displayed as modal; otherwise false. |