Table of Contents

Class Radio

Namespace
iText.Forms.Form.Element
Assembly
itext.forms.dll

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 string

the id.

Radio(string, string)

Creates a new Radio instance.

public Radio(string id, string radioGroupName)

Parameters

id string

the id.

radioGroupName string

the 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

AccessibilityProperties

GetProperty<T1>(int)

public override T1 GetProperty<T1>(int property)

Parameters

property int

Returns

T1

Type Parameters

T1

MakeNewRenderer()

protected override IRenderer MakeNewRenderer()

Returns

IRenderer

SetChecked(bool)

Sets the state of the radio button.

public virtual Radio SetChecked(bool @checked)

Parameters

checked bool

true if the radio button shall be checked, false otherwise. By default, the radio button is unchecked.

Returns

Radio

this same Radio button.