public bool Equals(IXLBorder other) { var otherB = other as XLBorder; return (_leftBorder == otherB._leftBorder && _leftBorderColor.Equals(otherB._leftBorderColor) && _rightBorder == otherB._rightBorder && _rightBorderColor.Equals(otherB._rightBorderColor) && _topBorder == otherB._topBorder && _topBorderColor.Equals(otherB._topBorderColor) && _bottomBorder == otherB._bottomBorder && _bottomBorderColor.Equals(otherB._bottomBorderColor) && _diagonalBorder == otherB._diagonalBorder && _diagonalBorderColor.Equals(otherB._diagonalBorderColor) && _diagonalUp == otherB._diagonalUp && _diagonalDown == otherB._diagonalDown ); }
public Boolean Equals(IXLFont other) { var otherF = other as XLFont; if (otherF == null) { return(false); } return (_bold == otherF._bold && _italic == otherF._italic && _underline == otherF._underline && _strikethrough == otherF._strikethrough && _verticalAlignment == otherF._verticalAlignment && _shadow == otherF._shadow && _fontSize == otherF._fontSize && _fontColor.Equals(otherF._fontColor) && _fontName == otherF._fontName && _fontFamilyNumbering == otherF._fontFamilyNumbering ); }