/// <inheritdoc /> public bool Equals([AllowNull] Legend other) { if (other == null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( BgColor == other.BgColor || BgColor != null && BgColor.Equals(other.BgColor) ) && ( BorderColor == other.BorderColor || BorderColor != null && BorderColor.Equals(other.BorderColor) ) && ( BorderWidth == other.BorderWidth || BorderWidth != null && BorderWidth.Equals(other.BorderWidth) ) && ( Font == other.Font || Font != null && Font.Equals(other.Font) ) && ( Orientation == other.Orientation || Orientation != null && Orientation.Equals(other.Orientation) ) && ( TraceOrder == other.TraceOrder || TraceOrder != null && TraceOrder.Equals(other.TraceOrder) ) && ( TraceGroupGap == other.TraceGroupGap || TraceGroupGap != null && TraceGroupGap.Equals(other.TraceGroupGap) ) && ( ItemSizing == other.ItemSizing || ItemSizing != null && ItemSizing.Equals(other.ItemSizing) ) && ( ItemWidth == other.ItemWidth || ItemWidth != null && ItemWidth.Equals(other.ItemWidth) ) && ( ItemClick == other.ItemClick || ItemClick != null && ItemClick.Equals(other.ItemClick) ) && ( ItemDoubleClick == other.ItemDoubleClick || ItemDoubleClick != null && ItemDoubleClick.Equals(other.ItemDoubleClick) ) && ( X == other.X || X != null && X.Equals(other.X) ) && ( XAnchor == other.XAnchor || XAnchor != null && XAnchor.Equals(other.XAnchor) ) && ( Y == other.Y || Y != null && Y.Equals(other.Y) ) && ( YAnchor == other.YAnchor || YAnchor != null && YAnchor.Equals(other.YAnchor) ) && ( UiRevision == other.UiRevision || UiRevision != null && UiRevision.Equals(other.UiRevision) ) && ( VAlign == other.VAlign || VAlign != null && VAlign.Equals(other.VAlign) ) && ( Title == other.Title || Title != null && Title.Equals(other.Title) )); }