Show / Hide Table of Contents

Class ToggleButtonBase

Base class for toggle button controls, such as CheckBox and RadioButton.

Inheritance
object
ControlBase
ButtonBase
ToggleButtonBase
CheckBox
RadioButton
ToggleSwitch
Inherited Members
ButtonBase._textAlignment
ButtonBase.OnClick()
ButtonBase.InvokeClick(bool)
ButtonBase.ProcessKeyboard(Keyboard)
ButtonBase.OnMouseIn(ControlBase.ControlMouseState)
ButtonBase.OnLeftMouseClicked(ControlBase.ControlMouseState)
ButtonBase.OnMouseExit(ControlBase.ControlMouseState)
ButtonBase.Text
ButtonBase.AutoSize
ButtonBase.TextAlignment
ButtonBase.Click
ControlBase.MouseState_IsMouseOver
ControlBase.MouseState_EnteredWithButtonDown
ControlBase.MouseState_IsMouseLeftDown
ControlBase.MouseState_IsMouseRightDown
ControlBase.OnUnfocused()
ControlBase.OnFocused()
ControlBase.OnIsDirtyChanged()
ControlBase.ProcessMouse(MouseScreenObjectState)
ControlBase.LostMouse(MouseScreenObjectState)
ControlBase.OnParentChanged()
ControlBase.OnPositionChanged()
ControlBase.PlaceRelativeTo(ControlBase, Direction.Types, int)
ControlBase.DetermineState()
ControlBase.OnStateChanged(ControlStates, ControlStates)
ControlBase.OnSurfaceChanged(ICellSurface, ICellSurface)
ControlBase.FindThemeFont()
ControlBase.FindThemeColors()
ControlBase.SetThemeColors(Colors)
ControlBase.HasThemeColors()
ControlBase.Resize(int, int)
ControlBase.OnResized()
ControlBase.CreateControlSurface()
ControlBase.RefreshThemeStateColors(Colors)
ControlBase.OnMouseEnter(ControlBase.ControlMouseState)
ControlBase.OnRightMouseClicked(ControlBase.ControlMouseState)
ControlBase.UpdateAndRedraw(TimeSpan)
ControlBase.ThemeState
ControlBase.UseKeyboard
ControlBase.UseMouse
ControlBase.CanFocus
ControlBase.CanResize
ControlBase.AlternateFont
ControlBase.Surface
ControlBase.MouseArea
ControlBase.IsMouseButtonStateClean
ControlBase.Position
ControlBase.AbsolutePosition
ControlBase.IsVisible
ControlBase.Tag
ControlBase.TabStop
ControlBase.TabIndex
ControlBase.IsDirty
ControlBase.Name
ControlBase.FocusOnMouseClick
ControlBase.Width
ControlBase.Height
ControlBase.IsFocused
ControlBase.IsEnabled
ControlBase.Bounds
ControlBase.Parent
ControlBase.State
ControlBase.IsDirtyChanged
ControlBase.Focused
ControlBase.Unfocused
ControlBase.PositionChanged
ControlBase.MouseEnter
ControlBase.MouseExit
ControlBase.MouseMove
ControlBase.MouseButtonClicked
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 abstract class ToggleButtonBase : ButtonBase

Constructors

ToggleButtonBase()

Creates an automatically sized button.

Declaration
protected ToggleButtonBase()

ToggleButtonBase(int, int)

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

Declaration
protected ToggleButtonBase(int width, int height)
Parameters
Type Name Description
int width

Width of the control.

int height

Height of the control (default is 1).

Properties

IsSelected

Gets or sets the selected state of the radio button.

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

Radio buttons within the same group will set their IsSelected property to the opposite of this radio button when you set this property.

Methods

OnIsSelected()

Raises the IsSelectedChanged event.

Declaration
protected virtual void OnIsSelected()

Events

IsSelectedChanged

Raised when the selected state of the radio button is changed.

Declaration
public event EventHandler? IsSelectedChanged
Event Type
Type Description
EventHandler

Extension Methods

ExtensionsSystem.GetDebuggerDisplayValue(object)
In this article

Back to top

Back to top Generated by DocFX