Table of Contents

Class MergeFieldsStrategy

Namespace
iText.Forms.Fields.Merging
Assembly
itext.forms.dll

A OnDuplicateFormFieldNameStrategy implementation that merges the second field into the first field if the second field has the same name as the first field.

public class MergeFieldsStrategy : OnDuplicateFormFieldNameStrategy
Inheritance
MergeFieldsStrategy
Implements
Inherited Members

Remarks

A OnDuplicateFormFieldNameStrategy implementation that merges the second field into the first field if the second field has the same name as the first field. This strategy is used by default.

Constructors

MergeFieldsStrategy()

Creates an instance of MergeFieldsStrategy

public MergeFieldsStrategy()

Methods

Execute(PdfFormField, PdfFormField, bool)

executes the strategy.

public virtual bool Execute(PdfFormField firstField, PdfFormField secondField, bool throwExceptionOnError)

Parameters

firstField PdfFormField

the first field

secondField PdfFormField

the second field

throwExceptionOnError bool

if true, an exception will be thrown

Returns

bool

true if the second field was merged successfully, false otherwise