예제 #1
0
        public override int GetHashCode()
        {
            unchecked // Overflow is fine, just wrap
            {
                int hashCode = 41;

                if (Visible != null)
                {
                    hashCode = hashCode * 59 + Visible.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 (Ax != null)
                {
                    hashCode = hashCode * 59 + Ax.GetHashCode();
                }

                if (Ay != null)
                {
                    hashCode = hashCode * 59 + Ay.GetHashCode();
                }

                if (AXref != null)
                {
                    hashCode = hashCode * 59 + AXref.GetHashCode();
                }

                if (AyRef != null)
                {
                    hashCode = hashCode * 59 + AyRef.GetHashCode();
                }

                if (XRef != null)
                {
                    hashCode = hashCode * 59 + XRef.GetHashCode();
                }

                if (X != null)
                {
                    hashCode = hashCode * 59 + X.GetHashCode();
                }

                if (XAnchor != null)
                {
                    hashCode = hashCode * 59 + XAnchor.GetHashCode();
                }

                if (XShift != null)
                {
                    hashCode = hashCode * 59 + XShift.GetHashCode();
                }

                if (YRef != null)
                {
                    hashCode = hashCode * 59 + YRef.GetHashCode();
                }

                if (Y != null)
                {
                    hashCode = hashCode * 59 + Y.GetHashCode();
                }

                if (YAnchor != null)
                {
                    hashCode = hashCode * 59 + YAnchor.GetHashCode();
                }

                if (YShift != null)
                {
                    hashCode = hashCode * 59 + YShift.GetHashCode();
                }

                if (ClickToShow != null)
                {
                    hashCode = hashCode * 59 + ClickToShow.GetHashCode();
                }

                if (XClick != null)
                {
                    hashCode = hashCode * 59 + XClick.GetHashCode();
                }

                if (YClick != null)
                {
                    hashCode = hashCode * 59 + YClick.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);
            }
        }