Class ListBoxItemColorTheme
Inherited Members
Namespace: SadConsole.UI.Controls
Assembly: SadConsole.dll
Syntax
[DataContract]
public class ListBoxItemColorTheme : ListBoxItemTheme
Constructors
ListBoxItemColorTheme()
Declaration
public ListBoxItemColorTheme()
Properties
UseSingleCharacterForBox
When false, colored boxes used when drawing the color for (Color, string) tuple will use two characters; otherwise true and only one character is used.
Declaration
public bool UseSingleCharacterForBox { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
Clone()
Creates a copy of this theme.
Declaration
public override ListBoxItemTheme Clone()
Returns
Type | Description |
---|---|
ListBoxItemTheme | A new theme object. |
Overrides
Draw(ControlBase, Rectangle, object, ControlStates)
Draws the item
in the specified area
of the listbox.
Declaration
public override void Draw(ControlBase control, Rectangle area, object item, ControlStates itemState)
Parameters
Type | Name | Description |
---|---|---|
ControlBase | control | The control containing a surface to draw on. |
Rectangle | area | The area to draw the item. |
object | item | The item object. |
ControlStates | itemState | The state of the item. |