Show / Hide Table of Contents

Class ListBoxItemTheme

A generic theme for a ListBox item.

Inheritance
object
ThemeStates
ListBoxItemTheme
FileDirectoryListboxItem
ListBoxItemColorTheme
Inherited Members
ThemeStates.SetForeground(Color)
ThemeStates.SetBackground(Color)
ThemeStates.SetGlyph(int)
ThemeStates.SetMirror(Mirror)
ThemeStates.GetStateAppearance(ControlStates)
ThemeStates.GetStateAppearanceNoMouse(ControlStates)
ThemeStates.Normal
ThemeStates.Disabled
ThemeStates.Focused
ThemeStates.Selected
ThemeStates.MouseOver
ThemeStates.MouseDown
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
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
Overrides
ThemeStates.RefreshTheme(Colors)

Extension Methods

ExtensionsSystem.GetDebuggerDisplayValue(object)
In this article

Back to top

Back to top Generated by DocFX