Class ListBoxItemTheme
A generic theme for a ListBox item.
Inherited Members
Namespace: SadConsole.UI.Controls
Assembly: SadConsole.dll
Syntax
public class ListBoxItemTheme : ThemeStates
Constructors
ListBoxItemTheme()
Declaration
public ListBoxItemTheme()
Properties
UseColoredStringBackground
Gets or sets a value to allow printing the background of a colored string. When false, the control state background is used.
Declaration
public bool UseColoredStringBackground { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
Clone()
Creates a copy of this theme.
Declaration
public virtual ListBoxItemTheme Clone()
Returns
Type | Description |
---|---|
ListBoxItemTheme | A new theme object. |
Draw(ControlBase, Rectangle, object, ControlStates)
Draws the item
in the specified area
of the listbox.
Declaration
public virtual 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. |
RefreshTheme(Colors)
Reloads the theme values based on the colors provided.
Declaration
public override void RefreshTheme(Colors themeColors)
Parameters
Type | Name | Description |
---|---|---|
Colors | themeColors |