/// <summary><inheritDoc/></summary> public override bool Equals(Object obj) { if (GetType() != obj.GetType()) { return(false); } iText.Layout.Layout.LayoutArea that = (iText.Layout.Layout.LayoutArea)obj; return(pageNumber == that.pageNumber && bBox.EqualsWithEpsilon(that.bBox)); }
/// <summary><inheritDoc/></summary> public override bool Equals(Object obj) { if (!(obj is iText.Layout.Layout.LayoutArea)) { return(false); } iText.Layout.Layout.LayoutArea that = (iText.Layout.Layout.LayoutArea)obj; return(pageNumber == that.pageNumber && bBox.EqualsWithEpsilon(that.bBox, AbstractRenderer.EPS)); }
/// <summary><inheritDoc/></summary> public virtual iText.Layout.Layout.LayoutArea Clone() { iText.Layout.Layout.LayoutArea area = new iText.Layout.Layout.LayoutArea(pageNumber, bBox.Clone()); return(area); }
/// <summary> /// Creates a "deep copy" of this LayoutArea, meaning the object returned by this method will be independent /// of the object being cloned. /// </summary> /// <returns>the copied LayoutArea.</returns> public virtual iText.Layout.Layout.LayoutArea Clone() { iText.Layout.Layout.LayoutArea clone = (iText.Layout.Layout.LayoutArea)MemberwiseClone(); clone.bBox = bBox.Clone(); return(clone); }