Example #1
0
        /// <summary>
        /// Returns the hashcode of the object.
        /// </summary>
        /// <returns></returns>
        public override int GetHashCode()
        {
            switch (ColorType)
            {
            case TColorType.RGB:
                return(HashCoder.GetHash(((int)ColorType).GetHashCode(), RGB.GetHashCode(), Tint.GetHashCode()));

            case TColorType.Automatic:
                return(HashCoder.GetHash(((int)ColorType).GetHashCode(), ((int)FAutomaticType).GetHashCode(), Tint.GetHashCode()));

            case TColorType.Theme:
                return(HashCoder.GetHash(((int)ColorType).GetHashCode(), ((int)Theme).GetHashCode(), Tint.GetHashCode()));

            case TColorType.Indexed:
                return(HashCoder.GetHash(((int)ColorType).GetHashCode(), FIndex.GetHashCode(), Tint.GetHashCode()));
            }

            return(((int)ColorType).GetHashCode());
        }
Example #2
0
        /// <summary>
        /// Returns the hashcode for this object.
        /// </summary>
        /// <returns></returns>
        public override int GetHashCode()
        {
            return(HashCoder.GetHash(
                       FApplyFontSize20.GetHashCode(),
                       FApplyFontSize20 ? FFontSize20.GetHashCode() : 0,
                       FApplyFontColor.GetHashCode(),
                       FApplyFontColor ? FontColor.GetHashCode() : 0,

                       FApplyFontStyleBoldAndItalic.GetHashCode(),
                       FApplyFontStyleSubSuperscript.GetHashCode(),
                       FApplyFontStyleStrikeout.GetHashCode(),
                       FApplyFontStyleBoldAndItalic || FApplyFontStyleSubSuperscript || FApplyFontStyleStrikeout ? FFontStyle.GetHashCode() : 0,

                       FApplyFontUnderline.GetHashCode(),
                       FApplyFontUnderline ? FFontUnderline.GetHashCode() : 0,

                       FApplyPatternStyle.GetHashCode(),
                       FApplyPatternStyle ? FPatternStyle.GetHashCode() : 0,

                       FApplyPatternFg.GetHashCode(),
                       FApplyPatternFg ? FPatternFgColor.GetHashCode() : 0,

                       FApplyPatternBg.GetHashCode(),
                       FApplyPatternBg ? PatternBgColor.GetHashCode() : 0,


                       FApplyBorderLeft.GetHashCode(),
                       FApplyBorderLeft ? FBorderLeft.GetHashCode() : 0,
                       FApplyBorderRight.GetHashCode(),
                       FApplyBorderRight ? FBorderRight.GetHashCode() : 0,
                       FApplyBorderTop.GetHashCode(),
                       FApplyBorderTop ? FBorderTop.GetHashCode() : 0,
                       FApplyBorderBottom.GetHashCode(),
                       FApplyBorderBottom ? FBorderBottom.GetHashCode() : 0
                       ));
        }
Example #3
0
 /// <summary>
 /// Returns a hashcode for the color.
 /// </summary>
 /// <returns></returns>
 public override int GetHashCode()
 {
     return(HashCoder.GetHash(FL0.GetHashCode(), Fa0.GetHashCode(), Fb0.GetHashCode()));
 }
Example #4
0
 /// <summary>
 /// Returns a hashcode for the color.
 /// </summary>
 /// <returns></returns>
 public override int GetHashCode()
 {
     return(HashCoder.GetHash(FscR.GetHashCode(), FscG.GetHashCode(), FscB.GetHashCode()));
 }
Example #5
0
 /// <summary>
 /// Returns a hashcode for the color.
 /// </summary>
 /// <returns></returns>
 public override int GetHashCode()
 {
     return(HashCoder.GetHash(FHue.GetHashCode(), FSat.GetHashCode(), FLum.GetHashCode()));
 }
Example #6
0
 /// <summary>
 /// Returns the hashcode for this object.
 /// </summary>
 /// <returns></returns>
 public override int GetHashCode()
 {
     return(HashCoder.GetHash(base.GetHashCode(), FTop.GetHashCode(), FLeft.GetHashCode(), FBottom.GetHashCode(), FRight.GetHashCode()));
 }
Example #7
0
 /// <summary>
 /// Returns the hashcode for this object.
 /// </summary>
 /// <returns></returns>
 public override int GetHashCode()
 {
     return(HashCoder.GetHash(base.GetHashCode(), RotationAngle.GetHashCode()));
 }
Example #8
0
        /// <summary>
        /// Returns the hashcode for this object.
        /// </summary>
        /// <returns></returns>
        public override int GetHashCode()
        {
            int StopsHashCode = Stops == null ? 0 : Stops.GetHashCode();

            return(HashCoder.GetHash(GradientType.GetHashCode(), StopsHashCode));
        }
Example #9
0
 /// <summary>
 /// Returns the hashcode for this struct.
 /// </summary>
 /// <returns></returns>
 public override int GetHashCode()
 {
     return(HashCoder.GetHash(Position.GetHashCode(), Color.GetHashCode()));
 }
Example #10
0
 public override int GetHashCode()
 {
     return(HashCoder.GetHash(FunctionType, GetHash(Domain), GetHash(Range), Functions.GetHashCode(), GetHash(Bounds), GetHash(Encode)));
 }
Example #11
0
 public override int GetHashCode()
 {
     return(HashCoder.GetHash(FunctionType, GetHash(Domain), GetHash(Range), GetHash(C0), GetHash(C1), N.GetHashCode()));
 }
Example #12
0
 public override int GetHashCode()
 {
     return(HashCoder.GetHash(FunctionType.GetHashCode(), GetHash(Domain), GetHash(Range), Data.GetHashCode(), BitsPerSample.GetHashCode()));
 }
Example #13
0
 public override int GetHashCode()
 {
     return(HashCoder.GetHash(Size.GetHashCode(), Name.GetHashCode(), ((int)Style).GetHashCode()));
 }
Example #14
0
 /// <summary>
 /// Hash code for the point.
 /// </summary>
 /// <returns>hashcode.</returns>
 public override int GetHashCode()
 {
     return(HashCoder.GetHash(X, Y));
 }
Example #15
0
 /// <summary>
 /// Returns the hashcode for this object
 /// </summary>
 /// <returns></returns>
 public override int GetHashCode()
 {
     return(HashCoder.GetHash(Fx.GetHashCode(), Fy.GetHashCode()));
 }