ListBoxItemColorTheme Class
Definition
Section titled “Definition”A theme for a ListBox that displays a SadRogue.Primitives.Color object.
[DataContract]public class ListBoxItemColorTheme : ListBoxItemThemeInheritance object → ThemeStates → ListBoxItemTheme
Constructors
Section titled “Constructors”ListBoxItemColorTheme()
Section titled “ListBoxItemColorTheme()”public ListBoxItemColorTheme()Properties
Section titled “Properties”UseSingleCharacterForBox
Section titled “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.
public bool UseSingleCharacterForBox { get; set; }Methods
Section titled “Methods”Draw(ControlBase, Rectangle, object, ControlStates)
Section titled “Draw(ControlBase, Rectangle, object, ControlStates)”Draws the item in the specified area of the listbox.
public override void Draw(ControlBase control, Rectangle area, object item, ControlStates itemState)Parameters
Section titled “Parameters”control ControlBase
The control containing a surface to draw on.
area SadRogue.Primitives.Rectangle
The area to draw the item.
item object
The item object.
itemState ControlStates
The state of the item.
Clone()
Section titled “Clone()”Creates a copy of this theme.
public override ListBoxItemTheme Clone()Returns
Section titled “Returns”ListBoxItemTheme
A new theme object.