Search Results for

    Show / Hide Table of Contents

    Class TextInput

    Represents a text input field within a form, allowing users to enter text data.

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

    TextInput is the free-text form field you add to a Word document when a reader is expected to type a value, such as a name, date, or comment on a fillable form. It represents one text-entry control in the document's form, sitting alongside the other form elements a template offers.

    A TextInput is a FormElement, the same family as RadioButton, so it goes into the document's form area where elements are collected. You create one with its default constructor and add it where the form is built, and IronWord renders it as an editable text field in the saved file. As a form-element marker it carries no configuration of its own beyond what the base form element and the surrounding document provide, so the work is in placing it where the input belongs rather than tuning many properties. Use it whenever a form needs an open text response rather than a fixed choice, and pair it with the choice-style elements when a template mixes typed answers and selections.

    The add text how-to covers writing text into a document, and the document element tutorial shows how form and content elements fit the model.

    Constructors

    TextInput()

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