Table of Contents

Class InputField

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

Extension of the FormField<T> class representing a button so that a InputFieldRenderer is used.

public class InputField : FormField<InputField>, IFormField, IBlockElement, IAbstractElement, IElement, IPropertyContainer, IAccessibleElement, IPlaceholderable
Inheritance
InputField
Implements
Inherited Members

Constructors

InputField(string)

Creates a new input field.

public InputField(string id)

Parameters

id string

the id

Methods

GetAccessibilityProperties()

public override AccessibilityProperties GetAccessibilityProperties()

Returns

AccessibilityProperties

GetDefaultProperty<T1>(int)

public override T1 GetDefaultProperty<T1>(int property)

Parameters

property int

Returns

T1

Type Parameters

T1

GetPlaceholder()

public virtual Paragraph GetPlaceholder()

Returns

Paragraph

GetRotation()

Get rotation.

public virtual int GetRotation()

Returns

int

rotation value.

MakeNewRenderer()

protected override IRenderer MakeNewRenderer()

Returns

IRenderer

SetPlaceholder(Paragraph)

public virtual void SetPlaceholder(Paragraph placeholder)

Parameters

placeholder Paragraph

SetRotation(int)

Set rotation of the input field.

public virtual InputField SetRotation(int rotation)

Parameters

rotation int

new rotation value, counterclockwise. Must be a multiple of 90 degrees. It has sense only in interactive mode, see SetInteractive(bool).

Returns

InputField

the edited InputField.

UseAsPassword(bool)

Determines, whether the input field will be password.

public virtual InputField UseAsPassword(bool isPassword)

Parameters

isPassword bool

true is this field shall be considered as password, false otherwise

Returns

InputField

this input field

Remarks

Determines, whether the input field will be password.

Usually means that instead of glyphs '*' will be shown in case of flatten field.

If the field is not flatten, value will be ignored.