Class MergeFieldsStrategy
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
PdfFormFieldthe first field
secondField
PdfFormFieldthe second field
throwExceptionOnError
boolif true, an exception will be thrown
Returns
- bool
true if the second field was merged successfully, false otherwise