Table of Contents

Interface IFormField

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

Common interface for HTML form elements.

public interface IFormField : IBlockElement, IAbstractElement, IElement, IPropertyContainer
Inherited Members

Methods

GetId()

Gets the id.

string GetId()

Returns

string

the id.

SetHeight(float)

Set the form field's height.

IFormField SetHeight(float height)

Parameters

height float

form field's height.

Returns

IFormField

this FormField<T> element.

SetInteractive(bool)

Set the form field to be interactive and added into Acroform instead of drawing it on a page.

IFormField SetInteractive(bool interactive)

Parameters

interactive bool

true if the form field element shall be added into Acroform, false otherwise. By default, the form field element is not interactive and drawn on a page.

Returns

IFormField

this same IFormField instance.

SetValue(string)

Sets the FORM_FIELD_VALUE property.

IFormField SetValue(string value)

Parameters

value string

string value of the property to be set.

Returns

IFormField

this same IFormField instance.

SetWidth(float)

Set the form field's width.

IFormField SetWidth(float width)

Parameters

width float

form field's width.

Returns

IFormField

this FormField<T> element.