Exemplo n.º 1
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
                       ));
        }