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