Show / Hide Table of Contents

Class GPALRadioButton

A GPAL radiobutton instantiated with GPAL.RadioButton for use GPAL forms.
Callback EventHandler is invoked on the GPALRadioButton.WindowsControl.CheckChanged event.
Default is not selected

Inheritance
System.Object
GPALControl
GPALRadioButton
Implements
IAllowControlSettingsAndFontSettings
IAllowFontSettings
IAllowControlSettingsEnabledAndChecked
IAllowControlSettings
IAllowEnabled
IAllowChecked
Inherited Members
GPALControl.FontType
GPALControl.TextAlignment
GPALControl.AutoSize
GPALControl.ControlAlignment
GPALControl.WithFont(Font)
GPALControl.WithTextAlignment(ContentAlignment)
GPALControl.WithAlignment(ContentAlignment)
GPALControl.WithAutoSize(Boolean)
GPALControl.Text
GPALControl.Name
GPALControl.Tag
GPALControl.WindowsControl
GPALControl.ControlType
GPALControl.WithShortcutKey(Keys)
GPALControl.WithCallback(EventHandler)
GPALControl.WithName(String)
GPALControl.WithTag(Object)
GPALControl.WithText(String)
GPALControl.ToGPALObject()
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: GenerallyPositive.GPALForm
Assembly: GPAL.dll
Syntax
public class GPALRadioButton : GPALControl, IAllowControlSettingsAndFontSettings, IAllowFontSettings, IAllowControlSettingsEnabledAndChecked, IAllowControlSettings, IAllowEnabled, IAllowChecked
Examples
static GPALRadioButton gPalRadioButton1 = (GPALRadioButton)GPAL.RadioButton
    .WithChecked(true)
    .WithName("Radiobutton1")
    .WithText("Chrome")
    .WithCallback(RadioButtonHandler); // on check changed event handler

static GPALRadioButton gPalRadioButton2 = (GPALRadioButton)GPAL.RadioButton
    .WithName("Radiobutton2")
    .WithText("Edge")
    .WithCallback(RadioButtonHandler); // on check changed event handler

GPALForm myForm = (GPALForm)GPAL.Form
    .WithTitle("Simple Form Test")
    .WithFormControl(gPalRadioButton1)
    .WithFormControl(gPalRadioButton2)
    .ShowDialog();

Properties

Checked

Runtime access to un/check the radiobutton

Declaration
public bool Checked { get; set; }
Property Value
Type Description
System.Boolean

True [checked]
False [default] - unchecked

Enabled

Runtime access to Enable/Disable the radiobutton.

Declaration
public bool Enabled { get; set; }
Property Value
Type Description
System.Boolean

True [default] - enabled
False - disabled

Methods

WithChecked(Boolean)

Sets whether the radiobutton is checked.

Declaration
public IAllowControlSettings WithChecked(bool isChecked)
Parameters
Type Name Description
System.Boolean isChecked

True
False [default]

Returns
Type Description
IAllowControlSettings

Fluent interface to define more settings

WithEnabled(Boolean)

Fluent interface to set the initial state of the control

Declaration
public IAllowControlSettings WithEnabled(bool enabled)
Parameters
Type Name Description
System.Boolean enabled

True [default]
False

Returns
Type Description
IAllowControlSettings

Fluent interface to define more settings

Implements

IAllowControlSettingsAndFontSettings
IAllowFontSettings
IAllowControlSettingsEnabledAndChecked
IAllowControlSettings
IAllowEnabled
IAllowChecked
In This Article
Back to top Generated by DocFX