ListBoxItemTheme Class
Definition
Section titled “Definition”A generic theme for a ListBox item.
public class ListBoxItemTheme : ThemeStatesInheritance object → ThemeStates
Constructors
Section titled “Constructors”ListBoxItemTheme()
Section titled “ListBoxItemTheme()”public ListBoxItemTheme()Properties
Section titled “Properties”UseColoredStringBackground
Section titled “UseColoredStringBackground”Gets or sets a value to allow printing the background of a colored string. When false, the control state background is used.
public bool UseColoredStringBackground { get; set; }Methods
Section titled “Methods”RefreshTheme(Colors)
Section titled “RefreshTheme(Colors)”Reloads the theme values based on the colors provided.
public override void RefreshTheme(Colors themeColors)Parameters
Section titled “Parameters”themeColors Colors
Draw(ControlBase, Rectangle, object, ControlStates)
Section titled “Draw(ControlBase, Rectangle, object, ControlStates)”Draws the item in the specified area of the listbox.
public virtual 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 virtual ListBoxItemTheme Clone()Returns
Section titled “Returns”ListBoxItemTheme
A new theme object.