Show / Hide Table of Contents

Class ListBoxItemColorTheme

A theme for a ListBox that displays a Color object.

Inheritance
object
ThemeStates
ListBoxItemTheme
ListBoxItemColorTheme
Inherited Members
ListBoxItemTheme.RefreshTheme(Colors)
ListBoxItemTheme.UseColoredStringBackground
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
[DataContract]
public class ListBoxItemColorTheme : ListBoxItemTheme

Constructors

ListBoxItemColorTheme()

Declaration
public ListBoxItemColorTheme()

Properties

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.

Declaration
public bool UseSingleCharacterForBox { get; set; }
Property Value
Type Description
bool

Methods

Clone()

Creates a copy of this theme.

Declaration
public override ListBoxItemTheme Clone()
Returns
Type Description
ListBoxItemTheme

A new theme object.

Overrides
ListBoxItemTheme.Clone()

Draw(ControlBase, Rectangle, object, ControlStates)

Draws the item in the specified area of the listbox.

Declaration
public override 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.

Overrides
ListBoxItemTheme.Draw(ControlBase, Rectangle, object, ControlStates)

Extension Methods

ExtensionsSystem.GetDebuggerDisplayValue(object)
In this article

Back to top

Back to top Generated by DocFX