public bool Equals(IXLPhonetics other)
        {
            if (other == null)
                return false;

            Int32 phoneticsCount = _phonetics.Count;
            for (Int32 i = 0; i < phoneticsCount; i++)
            {
                if (!_phonetics[i].Equals(other.ElementAt(i)))
                    return false;
            }

            return
                   Bold == other.Bold
                && Italic == other.Italic
                && Underline == other.Underline
                && Strikethrough == other.Strikethrough
                && VerticalAlignment == other.VerticalAlignment
                && Shadow == other.Shadow
                && FontSize == other.FontSize
                && FontColor.Equals(other.FontColor)
                && FontName == other.FontName
                && FontFamilyNumbering == other.FontFamilyNumbering
    ;
        }
Example #2
0
        public bool Equals(IXLPhonetics other)
        {
            if (other == null)
            {
                return(false);
            }

            Int32 phoneticsCount = _phonetics.Count;

            for (Int32 i = 0; i < phoneticsCount; i++)
            {
                if (!_phonetics[i].Equals(other.ElementAt(i)))
                {
                    return(false);
                }
            }

            return
                (Bold == other.Bold &&
                 Italic == other.Italic &&
                 Underline == other.Underline &&
                 Strikethrough == other.Strikethrough &&
                 VerticalAlignment == other.VerticalAlignment &&
                 Shadow == other.Shadow &&
                 FontSize == other.FontSize &&
                 FontColor.Equals(other.FontColor) &&
                 FontName == other.FontName &&
                 FontFamilyNumbering == other.FontFamilyNumbering);
        }
Example #3
0
        public XLPhonetics(IXLPhonetics defaultPhonetics, IXLFontBase defaultFont)
        {
            _defaultFont = defaultFont;
            Type         = defaultPhonetics.Type;
            Alignment    = defaultPhonetics.Alignment;

            this.CopyFont(defaultPhonetics);
        }
 public XLPhonetics(IXLPhonetics defaultPhonetics, IXLFontBase defaultFont)
 {
     _defaultFont = defaultFont;
     Type = defaultPhonetics.Type;
     Alignment = defaultPhonetics.Alignment;
     
     this.CopyFont(defaultPhonetics);
 }