Search Results for

    Show / Hide Table of Contents

    Class FormField

    Generic base class from which all PDF Form fields are derived.

    Inheritance
    System.Object
    FormField
    CheckBoxField
    ComboBoxField
    TextField
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: IronPdf.Forms
    Assembly: IronPdf.dll
    Syntax
    public class FormField

    Properties

    Name

    Gets the ID name of this field.

    Declaration
    public string Name { get; }
    Property Value
    Type Description
    System.String

    The name as a string.

    See Also
    GetFieldByName(String)

    ReadOnly

    Gets or sets the permissions for users to fill-in current form field.

    Declaration
    public bool ReadOnly { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if form field is readonly, otherwise false.

    Value

    Gets the value of the editable PDF field.

    Declaration
    public virtual string Value { get; set; }
    Property Value
    Type Description
    System.String

    The value.

    Methods

    SetFont(FontTypes, Double)

    Sets the font to the text field of pdf form.

    Declaration
    public virtual void SetFont(FontTypes fontType, double fontSize = 11)
    Parameters
    Type Name Description
    FontTypes fontType

    Type of the font.

    System.Double fontSize

    Size of the font.

    ToString()

    Returns the value of this field.

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String

    The value of this field.

    Overrides
    System.Object.ToString()
    ☀
    ☾
    In This Article
    Back to top
    Install with Nuget