Class ButtonBox
A button control that is drawn using lines around it.
Inherited Members
Namespace: SadConsole.UI.Controls
Assembly: SadConsole.dll
Syntax
[DataContract]
public class ButtonBox : ButtonBase
Constructors
ButtonBox(int, int)
Creates an instance of the button control with the specified width and height.
Declaration
public ButtonBox(int width, int height)
Parameters
Type | Name | Description |
---|---|---|
int | width | Width of the control. |
int | height | Height of the control (default is 1). |
Properties
UseExtended
When true, indicates that the lines of the theme should use the extended SadConsole font characters if available.
Declaration
[DataMember]
public bool UseExtended { get; set; }
Property Value
Type | Description |
---|---|
bool |
Methods
RefreshThemeStateColors(Colors)
Updates the ThemeState by calling RefreshTheme(Colors) with the provided colors. Override this method to adjust how colors are used by the ThemeState.
Declaration
protected override void RefreshThemeStateColors(Colors colors)
Parameters
Type | Name | Description |
---|---|---|
Colors | colors | The colors to apply to the theme state. |
Overrides
UpdateAndRedraw(TimeSpan)
Redraws the control if applicable.
Declaration
public override void UpdateAndRedraw(TimeSpan time)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | time | The duration of thecurrent frame. |