Class ColorSelector
Definition
- Namespace:
- ElmSharp
- Assembly:
- ElmSharp.dll
The ColorSelector is a widget to set a series of colors. It also allows to load/save colors from/to the configuration with a unique identifier.
C#Copypublic class ColorSelector : Layout, IAccessibleObject
- Inheritance
- Implements
Remarks
By default, the colors are loaded/saved from/to configuration using the "default" identifier. The colors can be picked by the user from the color set by clicking on individual color items on the palette, or by selecting it from the selector.
Constructors
ColorSelector(EvasObject)
Creates and initializes a new instance of the ColorSelector class.
Declaration
C#Copypublic ColorSelector(EvasObject parent)
Parameters
Type | Name | Description |
---|---|---|
EvasObject | parent |
Remarks
By default, the colors are loaded/saved from/to configuration using the "default" identifier. The colors can be picked by the user from the color set by clicking on individual color items on the palette, or by selecting it from the selector.
Properties
Declaration
C#Copypublic ColorSelectorMode Mode { get; set; }
Property Value
Type | Description |
---|---|
ColorSelectorMode |
Remarks
By default, the colors are loaded/saved from/to configuration using the "default" identifier. The colors can be picked by the user from the color set by clicking on individual color items on the palette, or by selecting it from the selector.
Declaration
C#Copypublic override int Opacity { get; set; }
Property Value
Type | Description |
---|---|
int |
Overrides
Remarks
By default, the colors are loaded/saved from/to configuration using the "default" identifier. The colors can be picked by the user from the color set by clicking on individual color items on the palette, or by selecting it from the selector.
Declaration
C#Copypublic string PaletteName { get; set; }
Property Value
Type | Description |
---|---|
string |
Remarks
By default, the colors are loaded/saved from/to configuration using the "default" identifier. The colors can be picked by the user from the color set by clicking on individual color items on the palette, or by selecting it from the selector.
Declaration
C#Copypublic Color SelectedColor { get; set; }
Property Value
Type | Description |
---|---|
Color |
Remarks
By default, the colors are loaded/saved from/to configuration using the "default" identifier. The colors can be picked by the user from the color set by clicking on individual color items on the palette, or by selecting it from the selector.
Methods
Declaration
C#Copypublic ColorSelectorItem AddPaletteColor(Color color)
Parameters
Type | Name | Description |
---|---|---|
Color | color | The color item to add. |
Returns
Type | Description |
---|---|
ColorSelectorItem | A new color palette Item. |
Remarks
By default, the colors are loaded/saved from/to configuration using the "default" identifier. The colors can be picked by the user from the color set by clicking on individual color items on the palette, or by selecting it from the selector.
Declaration
C#Copypublic void ClearPalette()
Remarks
By default, the colors are loaded/saved from/to configuration using the "default" identifier. The colors can be picked by the user from the color set by clicking on individual color items on the palette, or by selecting it from the selector.
Declaration
C#Copyprotected override IntPtr CreateHandle(EvasObject parent)
Parameters
Type | Name | Description |
---|---|---|
EvasObject | parent | Parent EvasObject. |
Returns
Type | Description |
---|---|
System.IntPtr | Handle IntPtr. |
Overrides
Remarks
By default, the colors are loaded/saved from/to configuration using the "default" identifier. The colors can be picked by the user from the color set by clicking on individual color items on the palette, or by selecting it from the selector.
Events
Declaration
C#Copypublic event EventHandler<ColorChangedEventArgs> ColorChanged
Event Type
Type | Description |
---|---|
System.EventHandler<TEventArgs><ColorChangedEventArgs> |
Remarks
By default, the colors are loaded/saved from/to configuration using the "default" identifier. The colors can be picked by the user from the color set by clicking on individual color items on the palette, or by selecting it from the selector.