Class RadioButton
Represents a radio button within a form, allowing users to select one option from a set of options.
Namespace: IronWord.Models
Assembly: IronWord.dll
Syntax
public class RadioButton : FormElement
When a Word form needs a single-choice control, RadioButton represents one of those selectable options in the document. A developer adding interactive form fields uses it for the familiar pick-one input, where several buttons belong to a group and only one can be chosen at a time. It is the form element a developer reaches for when a checkbox would allow too many selections and the answer should be mutually exclusive.
RadioButton is one of IronWord's form elements, sharing the common FormElement foundation with the document's other interactive controls, so it slots into the same form-building flow rather than standing alone. A developer creates one and places it where the choice should appear as part of laying out the form, which keeps radio buttons grouped with the rest of the form's fields.
Construct a RadioButton with its parameterless constructor and add it to the document where the option belongs. Because it carries the shared form-element behavior from FormElement, treat it as a building block within a form's layout: create the buttons that make up a choice group, position them together, and let the document model handle them as form controls alongside the other field types.
The document element tutorial and the add text how-to show how elements are placed into a document.
Constructors
RadioButton()
Declaration
public RadioButton()