Extension of the FormField class representing a button so that a iText.Forms.Form.Renderer.InputFieldRenderer is used. More...
Extension of the FormField class representing a button so that a iText.Forms.Form.Renderer.InputFieldRenderer is used.
◆ InputField()
| iText.Forms.Form.Element.InputField.InputField |
( |
String |
id |
) |
|
|
inline |
Creates a new input field.
-
Parameters
-
◆ GetAccessibilityProperties()
◆ GetPlaceholder()
| virtual Paragraph iText.Forms.Form.Element.InputField.GetPlaceholder |
( |
|
) |
|
|
inlinevirtual |
◆ GetRotation()
| virtual int iText.Forms.Form.Element.InputField.GetRotation |
( |
|
) |
|
|
inlinevirtual |
Get rotation.
-
Returns
-
rotation value.
◆ SetComb()
Sets Comb flag for the text field.
Sets Comb flag for the text field. Meaningful only if the MaxLen entry is present in the text field dictionary and if the Multiline, Password and FileSelect flags are clear.
If true, the field is automatically divided into as many equally spaced positions, or combs, as the value of MaxLen, and the text is laid out into those combs.
-
Parameters
-
| isComb |
boolean value specifying whether to enable combing |
-
Returns
-
this InputField instance
◆ SetMaxLen()
Sets the maximum length of the field's text, in characters.
-
Parameters
-
| maxLen |
the current maximum text length |
-
Returns
-
this InputField instance
◆ SetPlaceholder()
| virtual void iText.Forms.Form.Element.InputField.SetPlaceholder |
( |
Paragraph |
placeholder |
) |
|
|
inlinevirtual |
◆ SetRotation()
Set rotation of the input field.
-
Parameters
-
| rotation |
new rotation value, counterclockwise. Must be a multiple of 90 degrees. It has sense only in interactive mode, see FormField.SetInteractive(bool) |
-
Returns
-
the edited InputField
◆ UseAsPassword()
Determines, whether the input field will be password.
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.
-
Parameters
-
true is this field shall be considered as password, false otherwise
-
Returns
-
this input field