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

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

Check if the form already has specified field.

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

ReturnValue

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

See Also

Form::HasField(const System::String&) method

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

bool Aspose::Pdf::Forms::Form::HasField(const System::String &fieldName)
ParameterTypeDescription
fieldNameconst System::String&Field::PartialName or Annotation::FullName of the field.

ReturnValue

true

Remarks

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

.

See Also

Form::HasField(const 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(const System::String &fieldName, bool searchChildren)
ParameterTypeDescription
fieldNameconst System::String&Field::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