Skip to content

ListBoxItemTheme Class

A generic theme for a ListBox item.

C#
public class ListBoxItemTheme : ThemeStates

Inheritance objectThemeStates

C#
public ListBoxItemTheme()

Gets or sets a value to allow printing the background of a colored string. When false, the control state background is used.

C#
public bool UseColoredStringBackground { get; set; }

Reloads the theme values based on the colors provided.

C#
public override void RefreshTheme(Colors themeColors)

themeColors Colors

Draw(ControlBase, Rectangle, object, ControlStates)

Section titled “Draw(ControlBase, Rectangle, object, ControlStates)”

Draws the item in the specified area of the listbox.

C#
public virtual void Draw(ControlBase control, Rectangle area, object item, ControlStates itemState)

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.

Creates a copy of this theme.

C#
public virtual ListBoxItemTheme Clone()

ListBoxItemTheme
A new theme object.