Class Radio
Extension of the FormField<T> class representing a radio button so that a RadioRenderer is used instead of the default renderer for fields.
public class Radio : FormField<Radio>, IFormField, IBlockElement, IAbstractElement, IElement, IPropertyContainer, IAccessibleElement
- Inheritance
-
Radio
- Implements
- Inherited Members
Constructors
Radio(string)
Creates a new Radio instance.
public Radio(string id)
Parameters
id
stringthe id.
Radio(string, string)
Creates a new Radio instance.
public Radio(string id, string radioGroupName)
Parameters
id
stringthe id.
radioGroupName
stringthe name of the radio group the radio button belongs to. It has sense only in case this Radio element will not be rendered but Acroform field will be created instead.
Methods
GetAccessibilityProperties()
public override AccessibilityProperties GetAccessibilityProperties()
Returns
GetProperty<T1>(int)
public override T1 GetProperty<T1>(int property)
Parameters
property
int
Returns
- T1
Type Parameters
T1
MakeNewRenderer()
protected override IRenderer MakeNewRenderer()
Returns
SetChecked(bool)
Sets the state of the radio button.
public virtual Radio SetChecked(bool @checked)
Parameters
checked
booltrue if the radio button shall be checked, false otherwise. By default, the radio button is unchecked.