public bool EqualsValue(BorderStyle borderStyle) { if (borderStyle == this) return true; if (borderStyle == null) return false; return borderStyle.Bottom == Bottom && borderStyle.Color == Color && borderStyle.Left == Left && borderStyle.Right == Right && borderStyle.Style == Style && borderStyle.Top == Top && borderStyle.Thickness == Thickness; }