Modifier and Type | Method and Description |
---|---|
void |
add(Field field,
int pageNumber)
Adds field on the form.
|
Field |
add(Field field,
String partialName,
int pageNumber)
Adds new field to the form; If this field is already placed on other or this form, the copy of field is created.
|
void |
addFieldToAcroForm(Field field) |
void |
assignXfa(com.aspose.ms.System.Xml.XmlDocument xml) |
void |
copyTo(com.aspose.ms.System.Array array,
int index)
Copies fields placed on the form into array.
|
void |
delete(Field field)
Delete field from the form.
|
void |
delete(String fieldName)
Deletes field from the form by its name.
|
void |
flatten()
Removes all form fields and place their values directly on the page.
|
WidgetAnnotation |
get_Item(int index)
Gets field of the form by field index.
|
WidgetAnnotation |
get_Item(String name)
Gets field of the form by field name.
|
XFA |
get_xfa() |
WidgetAnnotation |
get(String name)
Searches field by field name.
|
DefaultAppearance |
getDefaultAppearance()
Gets default appearance of the form (object which describes default font, text size and color for fields on the form).
|
Resources |
getDefaultResources()
Gets default resources placed on this form.
|
IDocument |
getDocument() |
Field[] |
getFields()
Gets list of all fields in lowest level of hierarhical form.
|
Field[] |
getFieldsInRect(Rectangle rect)
Returns fields inside of specified rectangle.
|
Object |
getSyncRoot()
Returns synchronization object.
|
int |
getType()
Gets type of the form.
|
XFA |
getXFA()
Gets XFA data of the form (if presents).
|
boolean |
hasXfa() |
boolean |
isSynchronized()
Returns true if object is thread-safe.
|
com.aspose.ms.System.Collections.IEnumerator |
iterator()
Gets enumeration of form fields.
|
void |
setDefaultAppearance(DefaultAppearance value)
Sets default appearance of the form (object which describes default font, text size and color for fields on the form).
|
int |
size()
Gets number of the fields on this form.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEach, spliterator
public Form(IDocument document)
public IDocument getDocument()
public XFA get_xfa()
public boolean isSynchronized()
Returns true if object is thread-safe.
isSynchronized
in interface com.aspose.ms.System.Collections.ICollection
public Object getSyncRoot()
Returns synchronization object.
getSyncRoot
in interface com.aspose.ms.System.Collections.ICollection
public int size()
Gets number of the fields on this form.
size
in interface com.aspose.ms.System.Collections.ICollection
public Resources getDefaultResources()
Gets default resources placed on this form.
public DefaultAppearance getDefaultAppearance()
Gets default appearance of the form (object which describes default font, text size and color for fields on the form).
public void setDefaultAppearance(DefaultAppearance value)
Sets default appearance of the form (object which describes default font, text size and color for fields on the form).
public XFA getXFA()
Gets XFA data of the form (if presents).
public int getType()
Gets type of the form. Possible values are: Standard, Static, Dynamic.
public void copyTo(com.aspose.ms.System.Array array, int index)
Copies fields placed on the form into array.
copyTo
in interface com.aspose.ms.System.Collections.ICollection
array
- Array where fields must be placed.index
- Starting index.public com.aspose.ms.System.Collections.IEnumerator iterator()
Gets enumeration of form fields.
public WidgetAnnotation get(String name)
Searches field by field name. Returns null if field was not found.
name
- Field name.public void add(Field field, int pageNumber)
Adds field on the form.
field
- Field which must be added.pageNumber
- Page index where added field will be placed.public void delete(Field field)
Delete field from the form.
field
- Field which must be deleted.public void delete(String fieldName)
Deletes field from the form by its name.
fieldName
- Name of the filed which must be deleted.public void flatten()
Removes all form fields and place their values directly on the page.
public WidgetAnnotation get_Item(String name)
Gets field of the form by field name. Throws excpetion if the field was not found.
name
- Name of the field.public WidgetAnnotation get_Item(int index)
Gets field of the form by field index.
index
- Index of the field.public Field add(Field field, String partialName, int pageNumber)
Adds new field to the form; If this field is already placed on other or this form, the copy of field is created.
field
- Field name.partialName
- Name of field on the form.pageNumber
- Page number where field will be added.public void addFieldToAcroForm(Field field)
public boolean hasXfa()
public void assignXfa(com.aspose.ms.System.Xml.XmlDocument xml)
public Field[] getFields()
Gets list of all fields in lowest level of hierarhical form.
Copyright © 2020 Aspose. All Rights Reserved.