Click or drag to resize
FormInfo Methods

The FormInfo type exposes the following members.

Methods
  NameDescription
Public methodAddFormCategory
Add a form category at the specified index or at the end if the index is not specified.
Public methodAddFormItem
Adds form item at the specified index or at the end if the index is not specified.
Public methodClone
Clones the object.
Public methodCombineWithForm(FormInfo, CombineWithFormSettings)
Combines the form with another form info.
Public methodCombineWithForm(FormInfo, Boolean, String, Boolean, Boolean)
Combines the form with another form info.
Public methodCreateDataContainer
Creates data container based on this form definition
Public methodEnsureDefaultValues
Ensures the default values into the data container.
Public methodFieldExists
Returns true if the given field exists in the form definition
Public methodGetCategoryNames
Returns an List of category names.
Public methodGetClosestCategory
Returns closest category the field is placed under or null if there is no category above the field.
Public methodGetColumnNames
Returns an List of field names.
Public methodGetDataRow
Returns empty data row with column names and types.
Public methodStatic memberGetEmptyFormDocument
Gets empty root FormInfo XML node.
Public methodGetFields(String)
Returns the List of the FormFieldInfo objects.
Public methodGetFields(Boolean, Boolean, Boolean, Boolean, Boolean)
Returns an List of FormFieldInfo objects.
Public methodGetFieldsItemType
Gets the field of the given type
(Inherited from DataDefinition.)
Public methodGetFieldsWithControl
Returns a list of form fields containing control with controlName.
Public methodGetFormCategory
Returns CategoryInfo object specified by category name.
Public methodGetFormElements
Returns the List of the form elements.
Public methodGetFormField(Guid)
Returns field object with data from specified field.
Public methodGetFormField(String)
Returns field object with data from specified field.
Public methodGetHierarchicalFormElements
Returns hierarchical dictionary of items. Each category contains list of its fields. First fields without category are added to empty category.
Public methodGetUniqueFieldName
Gets a unique field name based on the existing field names in the form
Public methodGetXmlDefinition
Returns FormInfo definition in XML.
Public methodGetXmlElement
Gets the XML element for the data
(Overrides DataDefinitionGetXmlElement(XmlDocument).)
Public methodLoadDefaultValues(DataRow, Boolean)
Loads the default values into the DataRow.
Public methodLoadDefaultValues(DataRow, FormResolveTypeEnum, Boolean)
Loads the default values into the DataRow.
Public methodLoadDefaultValues(DataRow, String, Boolean)
Loads the default values into the DataRow.
Public methodLoadDefaultValues(IDataContainer, FormResolveTypeEnum, Boolean)
Loads the default values into the data container.
Protected methodLoadField
Loads the field from the XML node
(Overrides DataDefinitionLoadField(XmlNode).)
Public methodLoadFromDataStructure
Loads the data definition from structure of a database table
(Inherited from DataDefinition.)
Public methodLoadFromDefinition
Loads the data definition from XML file
(Inherited from DataDefinition.)
Public methodLoadFromXmlElement
Loads the data from the given XML element
(Inherited from DataDefinition.)
Protected methodLoadItem
Loads the item from the XML node
(Overrides DataDefinitionLoadItem(XmlNode).)
Public methodMoveFormCategoryDown
Moves specified form category down.
Public methodMoveFormCategoryUp
Moves specified form category up.
Public methodMoveFormFieldDown
Moves specified form field down.
Public methodMoveFormFieldToPositionInCategory
Moves specified form field to specified position in category. If category isn't specified, than field is moved to default category.
Public methodMoveFormFieldUp
Moves specified form field up.
Protected methodNewCategoryDefinition
Creates a new category definition object
Protected methodNewFieldDefinition
Creates a new field definition object
(Overrides DataDefinitionNewFieldDefinition.)
Public methodRemoveEmptyCategories
Removes all categories from the form that do not contain any fields
Public methodRemoveFields
Removes fields matching the given condition
Public methodRemoveFormCategory
Remove specified form category.
Public methodRemoveFormField
Removes specified form field.
Public methodUpdateExistingFields
Updates the existing fields from the FormInfo definition.
Public methodUpdateFormCategory
Update specified category node.
Public methodUpdateFormField
Update specified field node.
Public methodUsesHtmlArea
Returns true, if the form uses one or more visible HTML area fields.
Top
Extension Methods
  NameDescription
Public Extension MethodContainsSmartField
Returns true when given formInfo contains at least one field defined as smart one.
(Defined by FormFieldInfoExtensions.)
Top
See Also