ButtonBox Class
Definition
Section titled “Definition”A button control that is drawn using lines around it.
[DataContract]public class ButtonBox : ButtonBaseInheritance object → ControlBase → ButtonBase
Constructors
Section titled “Constructors”ButtonBox(int, int)
Section titled “ButtonBox(int, int)”Creates an instance of the button control with the specified width and height.
public ButtonBox(int width, int height)Parameters
Section titled “Parameters”width int
Width of the control.
height int
Height of the control (default is 1).
Properties
Section titled “Properties”UseExtended
Section titled “UseExtended”When true, indicates that the lines of the theme should use the extended SadConsole font characters if available.
[DataMember]public bool UseExtended { get; set; }Methods
Section titled “Methods”RefreshThemeStateColors(Colors)
Section titled “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.
protected override void RefreshThemeStateColors(Colors colors)Parameters
Section titled “Parameters”colors Colors
The colors to apply to the theme state.
UpdateAndRedraw(TimeSpan)
Section titled “UpdateAndRedraw(TimeSpan)”Redraws the control if applicable.
public override void UpdateAndRedraw(TimeSpan time)Parameters
Section titled “Parameters”time TimeSpan
The duration of thecurrent frame.