/// <inheritdoc /> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; if (BgColor != null) { hashCode = hashCode * 59 + BgColor.GetHashCode(); } if (BgColorArray != null) { hashCode = hashCode * 59 + BgColorArray.GetHashCode(); } if (BorderColor != null) { hashCode = hashCode * 59 + BorderColor.GetHashCode(); } if (BorderColorArray != null) { hashCode = hashCode * 59 + BorderColorArray.GetHashCode(); } if (Font != null) { hashCode = hashCode * 59 + Font.GetHashCode(); } if (Align != null) { hashCode = hashCode * 59 + Align.GetHashCode(); } if (AlignArray != null) { hashCode = hashCode * 59 + AlignArray.GetHashCode(); } if (NameLength != null) { hashCode = hashCode * 59 + NameLength.GetHashCode(); } if (NameLengthArray != null) { hashCode = hashCode * 59 + NameLengthArray.GetHashCode(); } if (BgColorSrc != null) { hashCode = hashCode * 59 + BgColorSrc.GetHashCode(); } if (BorderColorSrc != null) { hashCode = hashCode * 59 + BorderColorSrc.GetHashCode(); } if (AlignSrc != null) { hashCode = hashCode * 59 + AlignSrc.GetHashCode(); } if (NameLengthSrc != null) { hashCode = hashCode * 59 + NameLengthSrc.GetHashCode(); } return(hashCode); } }
/// <inheritdoc /> public bool Equals([AllowNull] HoverLabel 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) ) && ( Font == other.Font || Font != null && Font.Equals(other.Font) )); }
/// <inheritdoc /> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; if (BgColor != null) { hashCode = hashCode * 59 + BgColor.GetHashCode(); } if (Camera != null) { hashCode = hashCode * 59 + Camera.GetHashCode(); } if (Domain != null) { hashCode = hashCode * 59 + Domain.GetHashCode(); } if (AspectMode != null) { hashCode = hashCode * 59 + AspectMode.GetHashCode(); } if (AspectRatio != null) { hashCode = hashCode * 59 + AspectRatio.GetHashCode(); } if (XAxis != null) { hashCode = hashCode * 59 + XAxis.GetHashCode(); } if (YAxis != null) { hashCode = hashCode * 59 + YAxis.GetHashCode(); } if (ZAxis != null) { hashCode = hashCode * 59 + ZAxis.GetHashCode(); } if (DragMode != null) { hashCode = hashCode * 59 + DragMode.GetHashCode(); } if (HoverMode != null) { hashCode = hashCode * 59 + HoverMode.GetHashCode(); } if (UiRevision != null) { hashCode = hashCode * 59 + UiRevision.GetHashCode(); } if (Annotations != null) { hashCode = hashCode * 59 + Annotations.GetHashCode(); } return(hashCode); } }
public override void GenerateHtmlAtributes() { this.AppendCssClass(string.Format("bg-{0}", BgColor.ToCssClass())); if (this.AutoShow) { this.AppendHtmlAtribute("data-autoshow", 400.ToString()); this.AppendHtmlAtribute("data-autohide", 5000.ToString()); this.AppendHtmlAtribute("data-animation", "slide-up"); } }
/// <inheritdoc /> public bool Equals([AllowNull] Gauge other) { if (other == null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Shape == other.Shape || Shape != null && Shape.Equals(other.Shape) ) && ( Bar == other.Bar || Bar != null && Bar.Equals(other.Bar) ) && ( 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) ) && ( Axis == other.Axis || Axis != null && Axis.Equals(other.Axis) ) && ( Equals(Steps, other.Steps) || Steps != null && other.Steps != null && Steps.SequenceEqual(other.Steps) ) && ( Threshold == other.Threshold || Threshold != null && Threshold.Equals(other.Threshold) )); }
/// <inheritdoc /> public bool Equals([AllowNull] RangeSlider 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) ) && ( AutoRange == other.AutoRange || AutoRange != null && AutoRange.Equals(other.AutoRange) ) && ( Equals(Range, other.Range) || Range != null && other.Range != null && Range.SequenceEqual(other.Range) ) && ( Thickness == other.Thickness || Thickness != null && Thickness.Equals(other.Thickness) ) && ( Visible == other.Visible || Visible != null && Visible.Equals(other.Visible) ) && ( Equals(YAxis, other.YAxis) || YAxis != null && other.YAxis != null && YAxis.SequenceEqual(other.YAxis) )); }
/// <inheritdoc /> public bool Equals([AllowNull] Polar other) { if (other == null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Domain == other.Domain || Domain != null && Domain.Equals(other.Domain) ) && ( Equals(Sector, other.Sector) || Sector != null && other.Sector != null && Sector.SequenceEqual(other.Sector) ) && ( Hole == other.Hole || Hole != null && Hole.Equals(other.Hole) ) && ( BgColor == other.BgColor || BgColor != null && BgColor.Equals(other.BgColor) ) && ( RadialAxis == other.RadialAxis || RadialAxis != null && RadialAxis.Equals(other.RadialAxis) ) && ( AngularAxis == other.AngularAxis || AngularAxis != null && AngularAxis.Equals(other.AngularAxis) ) && ( GridShape == other.GridShape || GridShape != null && GridShape.Equals(other.GridShape) ) && ( UiRevision == other.UiRevision || UiRevision != null && UiRevision.Equals(other.UiRevision) )); }
/// <inheritdoc /> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; if (Visible != null) { hashCode = hashCode * 59 + Visible.GetHashCode(); } if (Buttons != null) { hashCode = hashCode * 59 + Buttons.GetHashCode(); } if (X != null) { hashCode = hashCode * 59 + X.GetHashCode(); } if (XAnchor != null) { hashCode = hashCode * 59 + XAnchor.GetHashCode(); } if (Y != null) { hashCode = hashCode * 59 + Y.GetHashCode(); } if (YAnchor != null) { hashCode = hashCode * 59 + YAnchor.GetHashCode(); } if (Font != null) { hashCode = hashCode * 59 + Font.GetHashCode(); } if (BgColor != null) { hashCode = hashCode * 59 + BgColor.GetHashCode(); } if (ActiveColor != null) { hashCode = hashCode * 59 + ActiveColor.GetHashCode(); } if (BorderColor != null) { hashCode = hashCode * 59 + BorderColor.GetHashCode(); } if (BorderWidth != null) { hashCode = hashCode * 59 + BorderWidth.GetHashCode(); } return(hashCode); } }
public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hashCode = 41; if (Domain != null) { hashCode = hashCode * 59 + Domain.GetHashCode(); } if (Sector != null) { hashCode = hashCode * 59 + Sector.GetHashCode(); } if (Hole != null) { hashCode = hashCode * 59 + Hole.GetHashCode(); } if (BgColor != null) { hashCode = hashCode * 59 + BgColor.GetHashCode(); } if (RadialAxis != null) { hashCode = hashCode * 59 + RadialAxis.GetHashCode(); } if (AngularAxis != null) { hashCode = hashCode * 59 + AngularAxis.GetHashCode(); } if (GridShape != null) { hashCode = hashCode * 59 + GridShape.GetHashCode(); } if (UiRevision != null) { hashCode = hashCode * 59 + UiRevision.GetHashCode(); } return(hashCode); } }
public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hashCode = 41; if (BgColor != null) { hashCode = hashCode * 59 + BgColor.GetHashCode(); } if (BorderColor != null) { hashCode = hashCode * 59 + BorderColor.GetHashCode(); } if (BorderWidth != null) { hashCode = hashCode * 59 + BorderWidth.GetHashCode(); } if (AutoRange != null) { hashCode = hashCode * 59 + AutoRange.GetHashCode(); } if (Range != null) { hashCode = hashCode * 59 + Range.GetHashCode(); } if (Thickness != null) { hashCode = hashCode * 59 + Thickness.GetHashCode(); } if (Visible != null) { hashCode = hashCode * 59 + Visible.GetHashCode(); } if (YAxis != null) { hashCode = hashCode * 59 + YAxis.GetHashCode(); } return(hashCode); } }
public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hashCode = 41; if (Shape != null) { hashCode = hashCode * 59 + Shape.GetHashCode(); } if (Bar != null) { hashCode = hashCode * 59 + Bar.GetHashCode(); } if (BgColor != null) { hashCode = hashCode * 59 + BgColor.GetHashCode(); } if (BorderColor != null) { hashCode = hashCode * 59 + BorderColor.GetHashCode(); } if (BorderWidth != null) { hashCode = hashCode * 59 + BorderWidth.GetHashCode(); } if (Axis != null) { hashCode = hashCode * 59 + Axis.GetHashCode(); } if (Steps != null) { hashCode = hashCode * 59 + Steps.GetHashCode(); } if (Threshold != null) { hashCode = hashCode * 59 + Threshold.GetHashCode(); } return(hashCode); } }
/// <inheritdoc /> public bool Equals([AllowNull] Ternary other) { if (other == null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Domain == other.Domain || Domain != null && Domain.Equals(other.Domain) ) && ( BgColor == other.BgColor || BgColor != null && BgColor.Equals(other.BgColor) ) && ( Sum == other.Sum || Sum != null && Sum.Equals(other.Sum) ) && ( AAxis == other.AAxis || AAxis != null && AAxis.Equals(other.AAxis) ) && ( BAxis == other.BAxis || BAxis != null && BAxis.Equals(other.BAxis) ) && ( CAxis == other.CAxis || CAxis != null && CAxis.Equals(other.CAxis) ) && ( UiRevision == other.UiRevision || UiRevision != null && UiRevision.Equals(other.UiRevision) )); }
public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hashCode = 41; if (Domain != null) { hashCode = hashCode * 59 + Domain.GetHashCode(); } if (BgColor != null) { hashCode = hashCode * 59 + BgColor.GetHashCode(); } if (Sum != null) { hashCode = hashCode * 59 + Sum.GetHashCode(); } if (AAxis != null) { hashCode = hashCode * 59 + AAxis.GetHashCode(); } if (BAxis != null) { hashCode = hashCode * 59 + BAxis.GetHashCode(); } if (CAxis != null) { hashCode = hashCode * 59 + CAxis.GetHashCode(); } if (UiRevision != null) { hashCode = hashCode * 59 + UiRevision.GetHashCode(); } return(hashCode); } }
/// <inheritdoc /> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; if (BgColor != null) { hashCode = hashCode * 59 + BgColor.GetHashCode(); } if (BorderColor != null) { hashCode = hashCode * 59 + BorderColor.GetHashCode(); } if (Font != null) { hashCode = hashCode * 59 + Font.GetHashCode(); } return(hashCode); } }
public void GetObjectData(SerializationInfo info, StreamingContext context) { info.AddValue("StringText", StringText); info.AddValue("Z_Order", Z_Order); info.AddValue("Rotation", Rotation); //Size info.AddValue("Width", TextSize.Width); info.AddValue("Height", TextSize.Height); info.AddValue("TextColor", TextColor.ToArgb()); info.AddValue("BgColor", BgColor.ToArgb()); //Point info.AddValue("X", TextLocation.X); info.AddValue("Y", TextLocation.Y); //Font (string familyName, float emSize); info.AddValue("familyName", TextFont.FontFamily.Name); info.AddValue("emSize", TextFont.Size); }
/// <inheritdoc /> public bool Equals([AllowNull] HoverLabel 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) ) && ( Font == other.Font || Font != null && Font.Equals(other.Font) ) && ( Align == other.Align || Align != null && Align.Equals(other.Align) ) && ( NameLength == other.NameLength || NameLength != null && NameLength.Equals(other.NameLength) )); }
/// <inheritdoc /> public bool Equals([AllowNull] ModeBar other) { if (other == null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Orientation == other.Orientation || Orientation != null && Orientation.Equals(other.Orientation) ) && ( BgColor == other.BgColor || BgColor != null && BgColor.Equals(other.BgColor) ) && ( Color == other.Color || Color != null && Color.Equals(other.Color) ) && ( ActiveColor == other.ActiveColor || ActiveColor != null && ActiveColor.Equals(other.ActiveColor) ) && ( UiRevision == other.UiRevision || UiRevision != null && UiRevision.Equals(other.UiRevision) )); }
/// <summary> Changes the background to match the level </summary> /// <param name="_level"> Level numer </param> /// <returns> The index of the group of levels this one is in </returns> public int SetBackground(float _level) { float progress; int levelGroup; if (_level < 8f) { progress = _level / 8.0f; levelGroup = 0; } else if (_level < 16f) { progress = (_level - 8f) / 8f; levelGroup = 1; } else if (_level < 24f) { progress = (_level - 16f) / 8f; levelGroup = 2; } else if (_level < GameMaster.Tuning.levelMax) { progress = (_level - 24f) / 8f; levelGroup = 3; } else { progress = 0; levelGroup = 4; } BgColor colors = bgColors[levelGroup]; TowerCamera.instance.SetBackgroundColor(Color.Lerp(colors.colorStart, colors.colorEnd, progress)); GroundController.instance.SetMaterial(levelGroup); return(levelGroup); }
/// <inheritdoc /> public bool Equals([AllowNull] ColorBar other) { if (other == null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( ThicknessMode == other.ThicknessMode || ThicknessMode != null && ThicknessMode.Equals(other.ThicknessMode) ) && ( Thickness == other.Thickness || Thickness != null && Thickness.Equals(other.Thickness) ) && ( LenMode == other.LenMode || LenMode != null && LenMode.Equals(other.LenMode) ) && ( Len == other.Len || Len != null && Len.Equals(other.Len) ) && ( X == other.X || X != null && X.Equals(other.X) ) && ( XAnchor == other.XAnchor || XAnchor != null && XAnchor.Equals(other.XAnchor) ) && ( XPad == other.XPad || XPad != null && XPad.Equals(other.XPad) ) && ( Y == other.Y || Y != null && Y.Equals(other.Y) ) && ( YAnchor == other.YAnchor || YAnchor != null && YAnchor.Equals(other.YAnchor) ) && ( YPad == other.YPad || YPad != null && YPad.Equals(other.YPad) ) && ( OutlineColor == other.OutlineColor || OutlineColor != null && OutlineColor.Equals(other.OutlineColor) ) && ( OutlineWidth == other.OutlineWidth || OutlineWidth != null && OutlineWidth.Equals(other.OutlineWidth) ) && ( BorderColor == other.BorderColor || BorderColor != null && BorderColor.Equals(other.BorderColor) ) && ( BorderWidth == other.BorderWidth || BorderWidth != null && BorderWidth.Equals(other.BorderWidth) ) && ( BgColor == other.BgColor || BgColor != null && BgColor.Equals(other.BgColor) ) && ( TickMode == other.TickMode || TickMode != null && TickMode.Equals(other.TickMode) ) && ( NTicks == other.NTicks || NTicks != null && NTicks.Equals(other.NTicks) ) && ( Tick0 == other.Tick0 || Tick0 != null && Tick0.Equals(other.Tick0) ) && ( DTick == other.DTick || DTick != null && DTick.Equals(other.DTick) ) && ( Equals(TickVals, other.TickVals) || TickVals != null && other.TickVals != null && TickVals.SequenceEqual(other.TickVals) ) && ( Equals(TickText, other.TickText) || TickText != null && other.TickText != null && TickText.SequenceEqual(other.TickText) ) && ( Ticks == other.Ticks || Ticks != null && Ticks.Equals(other.Ticks) ) && ( TickLen == other.TickLen || TickLen != null && TickLen.Equals(other.TickLen) ) && ( TickWidth == other.TickWidth || TickWidth != null && TickWidth.Equals(other.TickWidth) ) && ( TickColor == other.TickColor || TickColor != null && TickColor.Equals(other.TickColor) ) && ( ShowTickLabels == other.ShowTickLabels || ShowTickLabels != null && ShowTickLabels.Equals(other.ShowTickLabels) ) && ( TickFont == other.TickFont || TickFont != null && TickFont.Equals(other.TickFont) ) && ( TickAngle == other.TickAngle || TickAngle != null && TickAngle.Equals(other.TickAngle) ) && ( TickFormat == other.TickFormat || TickFormat != null && TickFormat.Equals(other.TickFormat) ) && ( Equals(TickFormatStops, other.TickFormatStops) || TickFormatStops != null && other.TickFormatStops != null && TickFormatStops.SequenceEqual(other.TickFormatStops) ) && ( TickPrefix == other.TickPrefix || TickPrefix != null && TickPrefix.Equals(other.TickPrefix) ) && ( ShowTickPrefix == other.ShowTickPrefix || ShowTickPrefix != null && ShowTickPrefix.Equals(other.ShowTickPrefix) ) && ( TickSuffix == other.TickSuffix || TickSuffix != null && TickSuffix.Equals(other.TickSuffix) ) && ( ShowTickSuffix == other.ShowTickSuffix || ShowTickSuffix != null && ShowTickSuffix.Equals(other.ShowTickSuffix) ) && ( SeparateThousands == other.SeparateThousands || SeparateThousands != null && SeparateThousands.Equals(other.SeparateThousands) ) && ( ExponentFormat == other.ExponentFormat || ExponentFormat != null && ExponentFormat.Equals(other.ExponentFormat) ) && ( MinExponent == other.MinExponent || MinExponent != null && MinExponent.Equals(other.MinExponent) ) && ( ShowExponent == other.ShowExponent || ShowExponent != null && ShowExponent.Equals(other.ShowExponent) ) && ( Title == other.Title || Title != null && Title.Equals(other.Title) ) && ( TickValsSrc == other.TickValsSrc || TickValsSrc != null && TickValsSrc.Equals(other.TickValsSrc) ) && ( TickTextSrc == other.TickTextSrc || TickTextSrc != null && TickTextSrc.Equals(other.TickTextSrc) )); }
public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hashCode = 41; if (Domain != null) { hashCode = hashCode * 59 + Domain.GetHashCode(); } if (FitBounds != null) { hashCode = hashCode * 59 + FitBounds.GetHashCode(); } if (Resolution != null) { hashCode = hashCode * 59 + Resolution.GetHashCode(); } if (Scope != null) { hashCode = hashCode * 59 + Scope.GetHashCode(); } if (Projection != null) { hashCode = hashCode * 59 + Projection.GetHashCode(); } if (Center != null) { hashCode = hashCode * 59 + Center.GetHashCode(); } if (Visible != null) { hashCode = hashCode * 59 + Visible.GetHashCode(); } if (ShowCoastlines != null) { hashCode = hashCode * 59 + ShowCoastlines.GetHashCode(); } if (CoastlineColor != null) { hashCode = hashCode * 59 + CoastlineColor.GetHashCode(); } if (CoastlineWidth != null) { hashCode = hashCode * 59 + CoastlineWidth.GetHashCode(); } if (ShowLand != null) { hashCode = hashCode * 59 + ShowLand.GetHashCode(); } if (LandColor != null) { hashCode = hashCode * 59 + LandColor.GetHashCode(); } if (ShowOcean != null) { hashCode = hashCode * 59 + ShowOcean.GetHashCode(); } if (OceanColor != null) { hashCode = hashCode * 59 + OceanColor.GetHashCode(); } if (ShowLakes != null) { hashCode = hashCode * 59 + ShowLakes.GetHashCode(); } if (LakeColor != null) { hashCode = hashCode * 59 + LakeColor.GetHashCode(); } if (ShowRivers != null) { hashCode = hashCode * 59 + ShowRivers.GetHashCode(); } if (RiverColor != null) { hashCode = hashCode * 59 + RiverColor.GetHashCode(); } if (RiverWidth != null) { hashCode = hashCode * 59 + RiverWidth.GetHashCode(); } if (ShowCountries != null) { hashCode = hashCode * 59 + ShowCountries.GetHashCode(); } if (CountryColor != null) { hashCode = hashCode * 59 + CountryColor.GetHashCode(); } if (CountryWidth != null) { hashCode = hashCode * 59 + CountryWidth.GetHashCode(); } if (ShowSubUnits != null) { hashCode = hashCode * 59 + ShowSubUnits.GetHashCode(); } if (SubUnitColor != null) { hashCode = hashCode * 59 + SubUnitColor.GetHashCode(); } if (SubUnitWidth != null) { hashCode = hashCode * 59 + SubUnitWidth.GetHashCode(); } if (ShowFrame != null) { hashCode = hashCode * 59 + ShowFrame.GetHashCode(); } if (FrameColor != null) { hashCode = hashCode * 59 + FrameColor.GetHashCode(); } if (FrameWidth != null) { hashCode = hashCode * 59 + FrameWidth.GetHashCode(); } if (BgColor != null) { hashCode = hashCode * 59 + BgColor.GetHashCode(); } if (LonAxis != null) { hashCode = hashCode * 59 + LonAxis.GetHashCode(); } if (LaTaxis != null) { hashCode = hashCode * 59 + LaTaxis.GetHashCode(); } if (UiRevision != null) { hashCode = hashCode * 59 + UiRevision.GetHashCode(); } return(hashCode); } }
public bool Equals([AllowNull] Geo other) { if (other == null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return((Domain == other.Domain && Domain != null && other.Domain != null && Domain.Equals(other.Domain)) && (FitBounds == other.FitBounds && FitBounds != null && other.FitBounds != null && FitBounds.Equals(other.FitBounds)) && (Resolution == other.Resolution && Resolution != null && other.Resolution != null && Resolution.Equals(other.Resolution)) && (Scope == other.Scope && Scope != null && other.Scope != null && Scope.Equals(other.Scope)) && (Projection == other.Projection && Projection != null && other.Projection != null && Projection.Equals(other.Projection)) && (Center == other.Center && Center != null && other.Center != null && Center.Equals(other.Center)) && (Visible == other.Visible && Visible != null && other.Visible != null && Visible.Equals(other.Visible)) && (ShowCoastlines == other.ShowCoastlines && ShowCoastlines != null && other.ShowCoastlines != null && ShowCoastlines.Equals(other.ShowCoastlines)) && (CoastlineColor == other.CoastlineColor && CoastlineColor != null && other.CoastlineColor != null && CoastlineColor.Equals(other.CoastlineColor)) && (CoastlineWidth == other.CoastlineWidth && CoastlineWidth != null && other.CoastlineWidth != null && CoastlineWidth.Equals(other.CoastlineWidth)) && (ShowLand == other.ShowLand && ShowLand != null && other.ShowLand != null && ShowLand.Equals(other.ShowLand)) && (LandColor == other.LandColor && LandColor != null && other.LandColor != null && LandColor.Equals(other.LandColor)) && (ShowOcean == other.ShowOcean && ShowOcean != null && other.ShowOcean != null && ShowOcean.Equals(other.ShowOcean)) && (OceanColor == other.OceanColor && OceanColor != null && other.OceanColor != null && OceanColor.Equals(other.OceanColor)) && (ShowLakes == other.ShowLakes && ShowLakes != null && other.ShowLakes != null && ShowLakes.Equals(other.ShowLakes)) && (LakeColor == other.LakeColor && LakeColor != null && other.LakeColor != null && LakeColor.Equals(other.LakeColor)) && (ShowRivers == other.ShowRivers && ShowRivers != null && other.ShowRivers != null && ShowRivers.Equals(other.ShowRivers)) && (RiverColor == other.RiverColor && RiverColor != null && other.RiverColor != null && RiverColor.Equals(other.RiverColor)) && (RiverWidth == other.RiverWidth && RiverWidth != null && other.RiverWidth != null && RiverWidth.Equals(other.RiverWidth)) && (ShowCountries == other.ShowCountries && ShowCountries != null && other.ShowCountries != null && ShowCountries.Equals(other.ShowCountries)) && (CountryColor == other.CountryColor && CountryColor != null && other.CountryColor != null && CountryColor.Equals(other.CountryColor)) && (CountryWidth == other.CountryWidth && CountryWidth != null && other.CountryWidth != null && CountryWidth.Equals(other.CountryWidth)) && (ShowSubUnits == other.ShowSubUnits && ShowSubUnits != null && other.ShowSubUnits != null && ShowSubUnits.Equals(other.ShowSubUnits)) && (SubUnitColor == other.SubUnitColor && SubUnitColor != null && other.SubUnitColor != null && SubUnitColor.Equals(other.SubUnitColor)) && (SubUnitWidth == other.SubUnitWidth && SubUnitWidth != null && other.SubUnitWidth != null && SubUnitWidth.Equals(other.SubUnitWidth)) && (ShowFrame == other.ShowFrame && ShowFrame != null && other.ShowFrame != null && ShowFrame.Equals(other.ShowFrame)) && (FrameColor == other.FrameColor && FrameColor != null && other.FrameColor != null && FrameColor.Equals(other.FrameColor)) && (FrameWidth == other.FrameWidth && FrameWidth != null && other.FrameWidth != null && FrameWidth.Equals(other.FrameWidth)) && (BgColor == other.BgColor && BgColor != null && other.BgColor != null && BgColor.Equals(other.BgColor)) && (LonAxis == other.LonAxis && LonAxis != null && other.LonAxis != null && LonAxis.Equals(other.LonAxis)) && (LaTaxis == other.LaTaxis && LaTaxis != null && other.LaTaxis != null && LaTaxis.Equals(other.LaTaxis)) && (UiRevision == other.UiRevision && UiRevision != null && other.UiRevision != null && UiRevision.Equals(other.UiRevision))); }
public bool Equals([AllowNull] Scene other) { if (other == null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return((BgColor == other.BgColor && BgColor != null && other.BgColor != null && BgColor.Equals(other.BgColor)) && (Camera == other.Camera && Camera != null && other.Camera != null && Camera.Equals(other.Camera)) && (Domain == other.Domain && Domain != null && other.Domain != null && Domain.Equals(other.Domain)) && (AspectMode == other.AspectMode && AspectMode != null && other.AspectMode != null && AspectMode.Equals(other.AspectMode)) && (AspectRatio == other.AspectRatio && AspectRatio != null && other.AspectRatio != null && AspectRatio.Equals(other.AspectRatio)) && (XAxis == other.XAxis && XAxis != null && other.XAxis != null && XAxis.Equals(other.XAxis)) && (YAxis == other.YAxis && YAxis != null && other.YAxis != null && YAxis.Equals(other.YAxis)) && (ZAxis == other.ZAxis && ZAxis != null && other.ZAxis != null && ZAxis.Equals(other.ZAxis)) && (DragMode == other.DragMode && DragMode != null && other.DragMode != null && DragMode.Equals(other.DragMode)) && (HoverMode == other.HoverMode && HoverMode != null && other.HoverMode != null && HoverMode.Equals(other.HoverMode)) && (UiRevision == other.UiRevision && UiRevision != null && other.UiRevision != null && UiRevision.Equals(other.UiRevision)) && (Equals(Annotations, other.Annotations) || Annotations != null && other.Annotations != null && Annotations.SequenceEqual(other.Annotations))); }
/// <inheritdoc /> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; if (BgColor != null) { hashCode = hashCode * 59 + BgColor.GetHashCode(); } if (BorderColor != null) { hashCode = hashCode * 59 + BorderColor.GetHashCode(); } if (BorderWidth != null) { hashCode = hashCode * 59 + BorderWidth.GetHashCode(); } if (Font != null) { hashCode = hashCode * 59 + Font.GetHashCode(); } if (Orientation != null) { hashCode = hashCode * 59 + Orientation.GetHashCode(); } if (TraceOrder != null) { hashCode = hashCode * 59 + TraceOrder.GetHashCode(); } if (TraceGroupGap != null) { hashCode = hashCode * 59 + TraceGroupGap.GetHashCode(); } if (ItemSizing != null) { hashCode = hashCode * 59 + ItemSizing.GetHashCode(); } if (ItemWidth != null) { hashCode = hashCode * 59 + ItemWidth.GetHashCode(); } if (ItemClick != null) { hashCode = hashCode * 59 + ItemClick.GetHashCode(); } if (ItemDoubleClick != null) { hashCode = hashCode * 59 + ItemDoubleClick.GetHashCode(); } if (X != null) { hashCode = hashCode * 59 + X.GetHashCode(); } if (XAnchor != null) { hashCode = hashCode * 59 + XAnchor.GetHashCode(); } if (Y != null) { hashCode = hashCode * 59 + Y.GetHashCode(); } if (YAnchor != null) { hashCode = hashCode * 59 + YAnchor.GetHashCode(); } if (UiRevision != null) { hashCode = hashCode * 59 + UiRevision.GetHashCode(); } if (VAlign != null) { hashCode = hashCode * 59 + VAlign.GetHashCode(); } if (Title != null) { hashCode = hashCode * 59 + Title.GetHashCode(); } return(hashCode); } }
public bool Equals([AllowNull] RangeSelector other) { if (other == null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return((Visible == other.Visible && Visible != null && other.Visible != null && Visible.Equals(other.Visible)) && (Equals(Buttons, other.Buttons) || Buttons != null && other.Buttons != null && Buttons.SequenceEqual(other.Buttons)) && (X == other.X && X != null && other.X != null && X.Equals(other.X)) && (XAnchor == other.XAnchor && XAnchor != null && other.XAnchor != null && XAnchor.Equals(other.XAnchor)) && (Y == other.Y && Y != null && other.Y != null && Y.Equals(other.Y)) && (YAnchor == other.YAnchor && YAnchor != null && other.YAnchor != null && YAnchor.Equals(other.YAnchor)) && (Font == other.Font && Font != null && other.Font != null && Font.Equals(other.Font)) && (BgColor == other.BgColor && BgColor != null && other.BgColor != null && BgColor.Equals(other.BgColor)) && (ActiveColor == other.ActiveColor && ActiveColor != null && other.ActiveColor != null && ActiveColor.Equals(other.ActiveColor)) && (BorderColor == other.BorderColor && BorderColor != null && other.BorderColor != null && BorderColor.Equals(other.BorderColor)) && (BorderWidth == other.BorderWidth && BorderWidth != null && other.BorderWidth != null && BorderWidth.Equals(other.BorderWidth))); }
public override void Draw(RectangleF rectB) { CGColorSpace cs = null; CGContext ctx = null; RectangleF bds; using (ctx = UIGraphics.GetCurrentContext()) { using (cs = CGColorSpace.CreateDeviceRGB()) { if (Vertical) { ctx.TranslateCTM(0, Bounds.Height); ctx.ScaleCTM(1, -1); bds = Bounds; } else { ctx.TranslateCTM(0, Bounds.Height); ctx.RotateCTM(-(float)Math.PI / 2); bds = new RectangleF(0, 0, Bounds.Height, Bounds.Width); } ctx.SetFillColorSpace(cs); ctx.SetStrokeColorSpace(cs); if (NumLights == 0) { float currentTop = 0; if (BgColor != null) { BgColor.SetColor(); ctx.FillRect(bds); } foreach (var thisTresh in ColorThresholds) { var val = Math.Min(thisTresh.MaxValue, Level); var rect = new RectangleF(0, bds.Height * currentTop, bds.Width, bds.Height * (val - currentTop)); thisTresh.Color.SetColor(); ctx.FillRect(rect); if (Level < thisTresh.MaxValue) { break; } currentTop = val; } if (BorderColor != null) { BorderColor.SetColor(); bds.Inflate(-0.5f, -0.5f); ctx.StrokeRect(bds); } } else { float lightMinVal = 0; float insetAmount, lightVSpace; int peakLight = -1; lightVSpace = bds.Height / (float)NumLights; if (lightVSpace < 4) { insetAmount = 0; } else if (lightVSpace < 8) { insetAmount = 0.5f; } else { insetAmount = 1; } if (PeakLevel > 0) { peakLight = (int)(PeakLevel * NumLights); if (peakLight >= NumLights) { peakLight = NumLights - 1; } } for (int light_i = 0; light_i < NumLights; light_i++) { float lightMaxVal = (light_i + 1) / (float)NumLights; float lightIntensity; RectangleF lightRect; UIColor lightColor; if (light_i == peakLight) { lightIntensity = 1; } else { lightIntensity = (Level - lightMinVal) / (lightMaxVal - lightMinVal); lightIntensity = Clamp(0, lightIntensity, 1); if (!VariableLightIntensity && lightIntensity > 0) { lightIntensity = 1; } } lightColor = ColorThresholds [0].Color; int color_i = 0; for (; color_i < ColorThresholds.Length - 1; color_i++) { var thisTresh = ColorThresholds [color_i]; var nextTresh = ColorThresholds [color_i + 1]; if (thisTresh.MaxValue <= lightMaxVal) { //Console.WriteLine ("PICKED COLOR at {0}", color_i); lightColor = nextTresh.Color; } } lightRect = new RectangleF(0, bds.Height * light_i / (float)NumLights, bds.Width, bds.Height * (1f / NumLights)); lightRect.Inset(insetAmount, insetAmount); if (BgColor != null) { BgColor.SetColor(); ctx.FillRect(lightRect); } //Console.WriteLine ("Got: {0} {1}", lightColor, UIColor.Red); //lightColor = UIColor.Red; if (lightIntensity == 1) { lightColor.SetColor(); //Console.WriteLine ("Setting color to {0}", lightColor); ctx.FillRect(lightRect); } else if (lightIntensity > 0) { using (var clr = new CGColor(lightColor.CGColor, lightIntensity)) { ctx.SetFillColor(clr); ctx.FillRect(lightRect); } } if (BorderColor != null) { BorderColor.SetColor(); lightRect.Inset(0.5f, 0.5f); ctx.StrokeRect(lightRect); } lightMinVal = lightMaxVal; } } } } }
public string ToString(ObjectStyle defaultStyle) { StringBuilder sb = new StringBuilder(); if (!Number.IsEqualTo(xStart, defaultStyle.xStart)) { sb.AppendFormat("xstart:{0};", xStart); } if (!Number.IsEqualTo(yStart, defaultStyle.yStart)) { sb.AppendFormat("ystart:{0};", yStart); } if (relativeWidth != defaultStyle.relativeWidth) { sb.AppendFormat("width:{0}%;", relativeWidth ?? 100); } if (width != defaultStyle.width) { sb.AppendFormat("width:{0};", width ?? 0); } if (relativeHeight != defaultStyle.relativeHeight) { sb.AppendFormat("height:{0}%;", relativeHeight ?? 100); } if (height != defaultStyle.height) { sb.AppendFormat("height:{0};", height ?? 0); } if (hPadding == vPadding && ((hPadding != defaultStyle.hPadding || vPadding != defaultStyle.vPadding))) { sb.AppendFormat("padding:{0};", Padding ?? 0); } else { if (hPadding != defaultStyle.hPadding) { sb.AppendFormat("hpadding:{0};", hPadding ?? 0); } if (vPadding != defaultStyle.vPadding) { sb.AppendFormat("vpadding:{0};", vPadding ?? 0); } } if (hFill != defaultStyle.hFill) { sb.AppendFormat("hfill:{0};", (hFill ?? false).ToString().ToLower()); } if (vFill != defaultStyle.vFill) { sb.AppendFormat("vfill:{0};", (vFill ?? false).ToString().ToLower()); } if (border != defaultStyle.border) { sb.AppendFormat("border:{0};", border ?? 0); } if (innerVerticalBorder == innerHorizontalBorder && (innerVerticalBorder != defaultStyle.innerVerticalBorder || innerHorizontalBorder != defaultStyle.innerHorizontalBorder)) { sb.AppendFormat("innerborder:{0};", InnerBorder ?? 0); } else { if (innerHorizontalBorder != defaultStyle.innerHorizontalBorder) { sb.AppendFormat("innerhborder:{0};", innerHorizontalBorder ?? 0); } if (innerVerticalBorder != defaultStyle.innerVerticalBorder) { sb.AppendFormat("innervborder:{0};", innerVerticalBorder ?? 0); } } if (spacing != defaultStyle.spacing) { sb.AppendFormat("spacing:{0};", spacing ?? 0); } if (innerVSpacing == innerHSpacing && (innerVSpacing != defaultStyle.innerVSpacing || innerHSpacing != defaultStyle.innerHSpacing)) { sb.AppendFormat("innerspacing:{0};", InnerSpacing ?? 0); } else { if (innerHSpacing != defaultStyle.innerHSpacing) { sb.AppendFormat("innerhspacing:{0};", innerHSpacing ?? 0); } if (innerVSpacing != defaultStyle.innerVSpacing) { sb.AppendFormat("innervspacing:{0};", innerVSpacing ?? 0); } } if (HAlign != HorizontalAlignment.Left && HAlign != defaultStyle.HAlign) { switch (HAlign) { case HorizontalAlignment.Right: sb.Append("halign:right;"); break; case HorizontalAlignment.Center: sb.Append("halign:center;"); break; } } if (VAlign != VerticalAlignment.Top && VAlign != defaultStyle.VAlign) { switch (VAlign) { case VerticalAlignment.Bottom: sb.Append("valign:bottom;"); break; case VerticalAlignment.Center: sb.Append("valign:center;"); break; } } if (DrawEmpty != defaultStyle.DrawEmpty) { sb.AppendFormat("drawempty:{0};", DrawEmpty.ToString().ToLowerInvariant()); } if (AllowHBreak != defaultStyle.AllowHBreak) { sb.AppendFormat("allowhbreak:{0};", AllowHBreak.ToString().ToLowerInvariant()); } if (AllowVBreak != defaultStyle.AllowVBreak) { sb.AppendFormat("allowvbreak:{0};", AllowVBreak.ToString().ToLowerInvariant()); } if (!bgColor.Equal(defaultStyle.BgColor)) { sb.AppendFormat("bgcolor:{0};", BgColor.ToHTMLColor()); } if (!fgColor.Equal(defaultStyle.FgColor)) { sb.AppendFormat("fgcolor:{0};", FgColor.ToHTMLColor()); } if (!borderColor.Equals(defaultStyle.BorderColor)) { sb.AppendFormat("bordercolor:{0};", BorderColor.ToHTMLColor()); } return(sb.ToString().TrimEnd(';')); }
/// <inheritdoc /> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; if (Visible != null) { hashCode = hashCode * 59 + Visible.GetHashCode(); } if (X != null) { hashCode = hashCode * 59 + X.GetHashCode(); } if (Y != null) { hashCode = hashCode * 59 + Y.GetHashCode(); } if (Z != null) { hashCode = hashCode * 59 + Z.GetHashCode(); } if (Ax != null) { hashCode = hashCode * 59 + Ax.GetHashCode(); } if (Ay != null) { hashCode = hashCode * 59 + Ay.GetHashCode(); } if (XAnchor != null) { hashCode = hashCode * 59 + XAnchor.GetHashCode(); } if (XShift != null) { hashCode = hashCode * 59 + XShift.GetHashCode(); } if (YAnchor != null) { hashCode = hashCode * 59 + YAnchor.GetHashCode(); } if (YShift != null) { hashCode = hashCode * 59 + YShift.GetHashCode(); } if (Text != null) { hashCode = hashCode * 59 + Text.GetHashCode(); } if (TextAngle != null) { hashCode = hashCode * 59 + TextAngle.GetHashCode(); } if (Font != null) { hashCode = hashCode * 59 + Font.GetHashCode(); } if (Width != null) { hashCode = hashCode * 59 + Width.GetHashCode(); } if (Height != null) { hashCode = hashCode * 59 + Height.GetHashCode(); } if (Opacity != null) { hashCode = hashCode * 59 + Opacity.GetHashCode(); } if (Align != null) { hashCode = hashCode * 59 + Align.GetHashCode(); } if (VAlign != null) { hashCode = hashCode * 59 + VAlign.GetHashCode(); } if (BgColor != null) { hashCode = hashCode * 59 + BgColor.GetHashCode(); } if (BorderColor != null) { hashCode = hashCode * 59 + BorderColor.GetHashCode(); } if (BorderPad != null) { hashCode = hashCode * 59 + BorderPad.GetHashCode(); } if (BorderWidth != null) { hashCode = hashCode * 59 + BorderWidth.GetHashCode(); } if (ShowArrow != null) { hashCode = hashCode * 59 + ShowArrow.GetHashCode(); } if (ArrowColor != null) { hashCode = hashCode * 59 + ArrowColor.GetHashCode(); } if (Arrowhead != null) { hashCode = hashCode * 59 + Arrowhead.GetHashCode(); } if (StartArrowhead != null) { hashCode = hashCode * 59 + StartArrowhead.GetHashCode(); } if (ArrowSide != null) { hashCode = hashCode * 59 + ArrowSide.GetHashCode(); } if (ArrowSize != null) { hashCode = hashCode * 59 + ArrowSize.GetHashCode(); } if (StartArrowSize != null) { hashCode = hashCode * 59 + StartArrowSize.GetHashCode(); } if (ArrowWidth != null) { hashCode = hashCode * 59 + ArrowWidth.GetHashCode(); } if (Standoff != null) { hashCode = hashCode * 59 + Standoff.GetHashCode(); } if (StartStandoff != null) { hashCode = hashCode * 59 + StartStandoff.GetHashCode(); } if (HoverText != null) { hashCode = hashCode * 59 + HoverText.GetHashCode(); } if (HoverLabel != null) { hashCode = hashCode * 59 + HoverLabel.GetHashCode(); } if (CaptureEvents != null) { hashCode = hashCode * 59 + CaptureEvents.GetHashCode(); } if (Name != null) { hashCode = hashCode * 59 + Name.GetHashCode(); } if (TemplateItemName != null) { hashCode = hashCode * 59 + TemplateItemName.GetHashCode(); } return(hashCode); } }
/// <inheritdoc /> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { var hashCode = 41; if (ThicknessMode != null) { hashCode = hashCode * 59 + ThicknessMode.GetHashCode(); } if (Thickness != null) { hashCode = hashCode * 59 + Thickness.GetHashCode(); } if (LenMode != null) { hashCode = hashCode * 59 + LenMode.GetHashCode(); } if (Len != null) { hashCode = hashCode * 59 + Len.GetHashCode(); } if (X != null) { hashCode = hashCode * 59 + X.GetHashCode(); } if (XAnchor != null) { hashCode = hashCode * 59 + XAnchor.GetHashCode(); } if (XPad != null) { hashCode = hashCode * 59 + XPad.GetHashCode(); } if (Y != null) { hashCode = hashCode * 59 + Y.GetHashCode(); } if (YAnchor != null) { hashCode = hashCode * 59 + YAnchor.GetHashCode(); } if (YPad != null) { hashCode = hashCode * 59 + YPad.GetHashCode(); } if (OutlineColor != null) { hashCode = hashCode * 59 + OutlineColor.GetHashCode(); } if (OutlineWidth != null) { hashCode = hashCode * 59 + OutlineWidth.GetHashCode(); } if (BorderColor != null) { hashCode = hashCode * 59 + BorderColor.GetHashCode(); } if (BorderWidth != null) { hashCode = hashCode * 59 + BorderWidth.GetHashCode(); } if (BgColor != null) { hashCode = hashCode * 59 + BgColor.GetHashCode(); } if (TickMode != null) { hashCode = hashCode * 59 + TickMode.GetHashCode(); } if (NTicks != null) { hashCode = hashCode * 59 + NTicks.GetHashCode(); } if (Tick0 != null) { hashCode = hashCode * 59 + Tick0.GetHashCode(); } if (DTick != null) { hashCode = hashCode * 59 + DTick.GetHashCode(); } if (TickVals != null) { hashCode = hashCode * 59 + TickVals.GetHashCode(); } if (TickText != null) { hashCode = hashCode * 59 + TickText.GetHashCode(); } if (Ticks != null) { hashCode = hashCode * 59 + Ticks.GetHashCode(); } if (TickLen != null) { hashCode = hashCode * 59 + TickLen.GetHashCode(); } if (TickWidth != null) { hashCode = hashCode * 59 + TickWidth.GetHashCode(); } if (TickColor != null) { hashCode = hashCode * 59 + TickColor.GetHashCode(); } if (ShowTickLabels != null) { hashCode = hashCode * 59 + ShowTickLabels.GetHashCode(); } if (TickFont != null) { hashCode = hashCode * 59 + TickFont.GetHashCode(); } if (TickAngle != null) { hashCode = hashCode * 59 + TickAngle.GetHashCode(); } if (TickFormat != null) { hashCode = hashCode * 59 + TickFormat.GetHashCode(); } if (TickFormatStops != null) { hashCode = hashCode * 59 + TickFormatStops.GetHashCode(); } if (TickPrefix != null) { hashCode = hashCode * 59 + TickPrefix.GetHashCode(); } if (ShowTickPrefix != null) { hashCode = hashCode * 59 + ShowTickPrefix.GetHashCode(); } if (TickSuffix != null) { hashCode = hashCode * 59 + TickSuffix.GetHashCode(); } if (ShowTickSuffix != null) { hashCode = hashCode * 59 + ShowTickSuffix.GetHashCode(); } if (SeparateThousands != null) { hashCode = hashCode * 59 + SeparateThousands.GetHashCode(); } if (ExponentFormat != null) { hashCode = hashCode * 59 + ExponentFormat.GetHashCode(); } if (MinExponent != null) { hashCode = hashCode * 59 + MinExponent.GetHashCode(); } if (ShowExponent != null) { hashCode = hashCode * 59 + ShowExponent.GetHashCode(); } if (Title != null) { hashCode = hashCode * 59 + Title.GetHashCode(); } if (TickValsSrc != null) { hashCode = hashCode * 59 + TickValsSrc.GetHashCode(); } if (TickTextSrc != null) { hashCode = hashCode * 59 + TickTextSrc.GetHashCode(); } return(hashCode); } }
public bool Equals([AllowNull] HoverLabel other) { if (other == null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return((BgColor == other.BgColor && BgColor != null && other.BgColor != null && BgColor.Equals(other.BgColor)) && (Equals(BgColorArray, other.BgColorArray) || BgColorArray != null && other.BgColorArray != null && BgColorArray.SequenceEqual(other.BgColorArray)) && (BorderColor == other.BorderColor && BorderColor != null && other.BorderColor != null && BorderColor.Equals(other.BorderColor)) && (Equals(BorderColorArray, other.BorderColorArray) || BorderColorArray != null && other.BorderColorArray != null && BorderColorArray.SequenceEqual(other.BorderColorArray)) && (Font == other.Font && Font != null && other.Font != null && Font.Equals(other.Font)) && (Align == other.Align && Align != null && other.Align != null && Align.Equals(other.Align)) && (Equals(AlignArray, other.AlignArray) || AlignArray != null && other.AlignArray != null && AlignArray.SequenceEqual(other.AlignArray)) && (NameLength == other.NameLength && NameLength != null && other.NameLength != null && NameLength.Equals(other.NameLength)) && (Equals(NameLengthArray, other.NameLengthArray) || NameLengthArray != null && other.NameLengthArray != null && NameLengthArray.SequenceEqual(other.NameLengthArray)) && (BgColorSrc == other.BgColorSrc && BgColorSrc != null && other.BgColorSrc != null && BgColorSrc.Equals(other.BgColorSrc)) && (BorderColorSrc == other.BorderColorSrc && BorderColorSrc != null && other.BorderColorSrc != null && BorderColorSrc.Equals(other.BorderColorSrc)) && (AlignSrc == other.AlignSrc && AlignSrc != null && other.AlignSrc != null && AlignSrc.Equals(other.AlignSrc)) && (NameLengthSrc == other.NameLengthSrc && NameLengthSrc != null && other.NameLengthSrc != null && NameLengthSrc.Equals(other.NameLengthSrc))); }
/// <inheritdoc /> public bool Equals([AllowNull] Annotation other) { if (other == null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Visible == other.Visible || Visible != null && Visible.Equals(other.Visible) ) && ( X == other.X || X != null && X.Equals(other.X) ) && ( Y == other.Y || Y != null && Y.Equals(other.Y) ) && ( Z == other.Z || Z != null && Z.Equals(other.Z) ) && ( Ax == other.Ax || Ax != null && Ax.Equals(other.Ax) ) && ( Ay == other.Ay || Ay != null && Ay.Equals(other.Ay) ) && ( XAnchor == other.XAnchor || XAnchor != null && XAnchor.Equals(other.XAnchor) ) && ( XShift == other.XShift || XShift != null && XShift.Equals(other.XShift) ) && ( YAnchor == other.YAnchor || YAnchor != null && YAnchor.Equals(other.YAnchor) ) && ( YShift == other.YShift || YShift != null && YShift.Equals(other.YShift) ) && ( Text == other.Text || Text != null && Text.Equals(other.Text) ) && ( TextAngle == other.TextAngle || TextAngle != null && TextAngle.Equals(other.TextAngle) ) && ( Font == other.Font || Font != null && Font.Equals(other.Font) ) && ( Width == other.Width || Width != null && Width.Equals(other.Width) ) && ( Height == other.Height || Height != null && Height.Equals(other.Height) ) && ( Opacity == other.Opacity || Opacity != null && Opacity.Equals(other.Opacity) ) && ( Align == other.Align || Align != null && Align.Equals(other.Align) ) && ( VAlign == other.VAlign || VAlign != null && VAlign.Equals(other.VAlign) ) && ( BgColor == other.BgColor || BgColor != null && BgColor.Equals(other.BgColor) ) && ( BorderColor == other.BorderColor || BorderColor != null && BorderColor.Equals(other.BorderColor) ) && ( BorderPad == other.BorderPad || BorderPad != null && BorderPad.Equals(other.BorderPad) ) && ( BorderWidth == other.BorderWidth || BorderWidth != null && BorderWidth.Equals(other.BorderWidth) ) && ( ShowArrow == other.ShowArrow || ShowArrow != null && ShowArrow.Equals(other.ShowArrow) ) && ( ArrowColor == other.ArrowColor || ArrowColor != null && ArrowColor.Equals(other.ArrowColor) ) && ( Arrowhead == other.Arrowhead || Arrowhead != null && Arrowhead.Equals(other.Arrowhead) ) && ( StartArrowhead == other.StartArrowhead || StartArrowhead != null && StartArrowhead.Equals(other.StartArrowhead) ) && ( ArrowSide == other.ArrowSide || ArrowSide != null && ArrowSide.Equals(other.ArrowSide) ) && ( ArrowSize == other.ArrowSize || ArrowSize != null && ArrowSize.Equals(other.ArrowSize) ) && ( StartArrowSize == other.StartArrowSize || StartArrowSize != null && StartArrowSize.Equals(other.StartArrowSize) ) && ( ArrowWidth == other.ArrowWidth || ArrowWidth != null && ArrowWidth.Equals(other.ArrowWidth) ) && ( Standoff == other.Standoff || Standoff != null && Standoff.Equals(other.Standoff) ) && ( StartStandoff == other.StartStandoff || StartStandoff != null && StartStandoff.Equals(other.StartStandoff) ) && ( HoverText == other.HoverText || HoverText != null && HoverText.Equals(other.HoverText) ) && ( HoverLabel == other.HoverLabel || HoverLabel != null && HoverLabel.Equals(other.HoverLabel) ) && ( CaptureEvents == other.CaptureEvents || CaptureEvents != null && CaptureEvents.Equals(other.CaptureEvents) ) && ( Name == other.Name || Name != null && Name.Equals(other.Name) ) && ( TemplateItemName == other.TemplateItemName || TemplateItemName != null && TemplateItemName.Equals(other.TemplateItemName) )); }