public virtual void CopyTo(iText.Layout.Margincollapse.MarginsCollapseInfo destInfo)
 {
     destInfo.ignoreOwnMarginTop    = this.ignoreOwnMarginTop;
     destInfo.ignoreOwnMarginBottom = this.ignoreOwnMarginBottom;
     destInfo.collapseBefore        = this.collapseBefore;
     destInfo.collapseAfter         = this.collapseAfter;
     destInfo.SetOwnCollapseAfter(ownCollapseAfter);
     destInfo.SetSelfCollapsing(isSelfCollapsing);
     destInfo.SetBufferSpaceOnTop(bufferSpaceOnTop);
     destInfo.SetBufferSpaceOnBottom(bufferSpaceOnBottom);
     destInfo.SetUsedBufferSpaceOnTop(usedBufferSpaceOnTop);
     destInfo.SetUsedBufferSpaceOnBottom(usedBufferSpaceOnBottom);
     destInfo.SetClearanceApplied(clearanceApplied);
 }
 public static void UpdateFromCopy(iText.Layout.Margincollapse.MarginsCollapseInfo originalInstance, iText.Layout.Margincollapse.MarginsCollapseInfo
                                   processedCopy)
 {
     originalInstance.ignoreOwnMarginTop    = processedCopy.ignoreOwnMarginTop;
     originalInstance.ignoreOwnMarginBottom = processedCopy.ignoreOwnMarginBottom;
     originalInstance.collapseBefore.JoinMargin(processedCopy.collapseBefore);
     originalInstance.collapseAfter.JoinMargin(processedCopy.collapseAfter);
     if (processedCopy.GetOwnCollapseAfter() != null)
     {
         if (originalInstance.GetOwnCollapseAfter() == null)
         {
             originalInstance.SetOwnCollapseAfter(new MarginsCollapse());
         }
         originalInstance.GetOwnCollapseAfter().JoinMargin(processedCopy.GetOwnCollapseAfter());
     }
     originalInstance.SetSelfCollapsing(processedCopy.isSelfCollapsing);
     originalInstance.SetBufferSpaceOnTop(processedCopy.bufferSpaceOnTop);
     originalInstance.SetBufferSpaceOnBottom(processedCopy.bufferSpaceOnBottom);
     originalInstance.SetUsedBufferSpaceOnTop(processedCopy.usedBufferSpaceOnTop);
     originalInstance.SetUsedBufferSpaceOnBottom(processedCopy.usedBufferSpaceOnBottom);
     originalInstance.SetClearanceApplied(processedCopy.clearanceApplied);
 }