Search Results for

    Show / Hide Table of Contents

    Class FormElement

    Represents an abstract base class for different types of form elements within a form.

    Inheritance
    System.Object
    FormElement
    RadioButton
    TextInput
    Namespace: IronWord.Models.Abstract
    Assembly: IronWord.dll
    Syntax
    public abstract class FormElement : Object

    Treating the interactive form controls of an IronWord document as one family in C# is what FormElement makes possible. It groups the form-field types under one parent so a developer can handle radio buttons and text inputs through a single reference when building or reading a fillable Word document. The base itself carries no fillable behavior of its own; it exists to give the form controls a common type.

    The concrete elements that extend it are RadioButton and TextInput, and those are the types a developer instantiates and configures. A FormElement reference is what you hold when a routine should accept either control without caring which one it received, for example when iterating mixed form fields. Because the type is abstract, it is never constructed directly; you work with one of its derived controls and rely on FormElement only as the common base.

    The add text how-to builds document content, and the document element tutorial explains where elements like form controls sit in the model.

    Constructors

    FormElement()

    Declaration
    protected FormElement()
    ☀
    ☾
    Downloads
    • Download with NuGet
    • Start for Free
    In This Article
    Back to top
    Install with NuGet