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 iText.Layout.Margincollapse.MarginsCollapseInfo CreateDeepCopy(iText.Layout.Margincollapse.MarginsCollapseInfo instance) { iText.Layout.Margincollapse.MarginsCollapseInfo copy = new iText.Layout.Margincollapse.MarginsCollapseInfo (); instance.CopyTo(copy); copy.collapseBefore = instance.collapseBefore.Clone(); copy.collapseAfter = instance.collapseAfter.Clone(); if (instance.ownCollapseAfter != null) { copy.SetOwnCollapseAfter(instance.ownCollapseAfter.Clone()); } return(copy); }
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); }