Esempio n. 1
0
        protected override int ComputeHashCode()
        {
            var hash = text.GetHashCode();

            //if (font != null)
            //{
            //    hash = hash * 37 + font.GetHashCode();
            //}
            hash = hash * 37 + fontSize.GetHashCode();
            hash = hash * 37 + fontStyle.GetHashCode();
            hash = hash * 37 + lineSpacing.GetHashCode();
            hash = hash * 37 + supportRichText.GetHashCode();
            hash = hash * 37 + alignment.GetHashCode();
            hash = hash * 37 + alignByGeometry.GetHashCode();
            hash = hash * 37 + horizontalOverflow.GetHashCode();
            hash = hash * 37 + verticalOverflow.GetHashCode();
            hash = hash * 37 + resizeTextForBestFit.GetHashCode();
            hash = hash * 37 + maskable.GetHashCode();
            return(hash);
        }