Aspose::Pdf::Forms::Form::HasField method

Form::HasField(System::SharedPtr<Field>) method

Check if the form already has specified field.

bool Aspose::Pdf::Forms::Form::HasField(System::SharedPtr<Field> field)
ParameterTypeDescription
fieldSystem::SharedPtr<Field>Field to check.

ReturnValue

true if the specified field name added to Form; otherwise, false.

See Also

Form::HasField(System::String) method

Determines if the field with specified name already added to the Form.

bool Aspose::Pdf::Forms::Form::HasField(System::String fieldName)
ParameterTypeDescription
fieldNameSystem::StringField::PartialName or Annotation::FullName of the field.

ReturnValue

true

Remarks

if the specified field name added to Form; otherwise, false

.

See Also

Form::HasField(System::String, bool) method

Determines if the field with specified name already added to the Form, with ability to look into children hierarchy of fields.

bool Aspose::Pdf::Forms::Form::HasField(System::String fieldName, bool searchChildren)
ParameterTypeDescription
fieldNameSystem::StringField::PartialName or Annotation::FullName of the field.
searchChildrenboolWhen set to true

the whole hierarchy of form fields would be searched for the requested fieldName (note that in this case the Annotation::FullName of the required field should be passed as fieldName ). |

ReturnValue

true

Remarks

if the specified field name added to Form; otherwise, false

.

See Also