Skip to content

ButtonBox Class

A button control that is drawn using lines around it.

C#
[DataContract]
public class ButtonBox : ButtonBase

Inheritance objectControlBaseButtonBase

Creates an instance of the button control with the specified width and height.

C#
public ButtonBox(int width, int height)

width int
Width of the control.

height int
Height of the control (default is 1).

When true, indicates that the lines of the theme should use the extended SadConsole font characters if available.

C#
[DataMember]
public bool UseExtended { get; set; }

Updates the ThemeState by calling RefreshTheme(Colors) with the provided colors. Override this method to adjust how colors are used by the ThemeState.

C#
protected override void RefreshThemeStateColors(Colors colors)

colors Colors
The colors to apply to the theme state.

Redraws the control if applicable.

C#
public override void UpdateAndRedraw(TimeSpan time)

time TimeSpan
The duration of thecurrent frame.