Aspose.Words.Examples.CSharp.Mail_Merge.ApplyCustomLogicToEmptyRegions.ExecuteCustomLogicOnEmptyRegions C# (CSharp) Method

ExecuteCustomLogicOnEmptyRegions() public static method

Applies logic defined in the passed handler class to all unused regions in the document. This allows to manually control How unused regions are handled in the document.
public static ExecuteCustomLogicOnEmptyRegions ( Document doc, IFieldMergingCallback handler ) : void
doc Document The document containing unused regions
handler IFieldMergingCallback The handler which implements the IFieldMergingCallback interface and defines the logic to be applied to each unmerged region.
return void
        public static void ExecuteCustomLogicOnEmptyRegions(Document doc, IFieldMergingCallback handler)
        {
            ExecuteCustomLogicOnEmptyRegions(doc, handler, null); // Pass null to handle all regions found in the document.
        }

Same methods

ApplyCustomLogicToEmptyRegions::ExecuteCustomLogicOnEmptyRegions ( Document doc, IFieldMergingCallback handler, ArrayList regionsList ) : void