public bool checkEqualParagraph(Paragraph paragraph1, Paragraph paragraph2) { ABIW_Borders borders1 = new ABIW_Borders(paragraph1.Borders); ABIW_Borders borders2 = new ABIW_Borders(paragraph2.Borders); CompareObject compareObject = new CompareObject(); if (compareObject.compareTwoObject(paragraph1.Alignment, paragraph2.Alignment) && compareObject.compareTwoObject(paragraph1.LeftIndent, paragraph2.LeftIndent) && compareObject.compareTwoObject(paragraph1.RightIndent, paragraph2.RightIndent) && compareObject.compareTwoObject(paragraph1.FirstLineIndent, paragraph2.FirstLineIndent) && compareObject.compareTwoObject(paragraph1.MirrorIndents, paragraph2.MirrorIndents) && compareObject.compareTwoObject(paragraph1.LineSpacingRule, paragraph2.LineSpacingRule) && compareObject.compareTwoObject(paragraph1.SpaceAfter, paragraph2.SpaceAfter) && compareObject.compareTwoObject(paragraph1.SpaceBefore, paragraph2.SpaceBefore) && compareObject.compareTwoObject(paragraph1.LineSpacing, paragraph2.LineSpacing) && borders1.Compare(borders2).Result == ComparisonResultIndicate.equal ) { return(true); } else { return(false); } }
public bool checkEqualBorders(Borders border1, Borders border2) { ABIW_Borders aBIW_Borders1 = new ABIW_Borders(border1); ABIW_Borders aBIW_Borders2 = new ABIW_Borders(border2); if (aBIW_Borders1.Compare(aBIW_Borders2).Result == ComparisonResultIndicate.equal) { return(true); } else { return(false); } }