AddNew Method of the FieldDefinitions Object
This method adds a new field definition of the specified type at the end of the collection.
Syntax
Visual Basic .NET
Function AddNew( _ Type As FieldTypeEnum, _ Name As String _ ) As FieldDefinition
C++
HRESULT AddNew( FieldTypeEnum Type, BSTR Name, IFieldDefinition** Result );
Parameters
Type
- [in] This variable specifies the type of the field. See the description of the FieldTypeEnum constants. Only the FT_TextField, FT_Checkmark, FT_CheckmarkGroup, FT_Table, FT_PictureField, FT_Group constants can be used as the value of this parameter.
- Name
- [in] This variable specifies the name of the field. The name of the field can not contain a space, otherwise it couldn't be trained.
- Result
- [out, retval] A pointer to the IFieldDefinition* variable that receives the interface pointer for the added field definition.
Return values
This method has no specific return values. It returns the standard return values of ABBYY FlexiCapture SDK functions.
See also
15.08.2023 13:19:30