Exemplo n.º 1
0
        public object Clone()
        {
            BIFF8Style bIFF8Style = (BIFF8Style)base.MemberwiseClone();

            bIFF8Style.m_xfData = (byte[])this.m_xfData.Clone();
            bIFF8Style.m_hash   = 0;
            return(bIFF8Style);
        }
        public int AddStyle(StyleProperties props)
        {
            BIFF8Style bIFF8Style = new BIFF8Style(props);
            BIFF8Font  font       = new BIFF8Font(props);

            bIFF8Style.Ifnt = this.AddFont(font);
            bIFF8Style.Ifmt = this.AddFormat(props.NumberFormat);
            return(this.AddStyle(bIFF8Style));
        }
        public int AddStyle(BIFF8Style style)
        {
            int num = default(int);

            if (!this.m_styleMap.TryGetValue(style, out num))
            {
                num = this.m_styles.Count + 21;
                this.m_styleMap.Add(style, num);
                this.m_styles.Add(style);
            }
            return(num);
        }
Exemplo n.º 4
0
        public override bool Equals(object target)
        {
            BIFF8Style bIFF8Style = (BIFF8Style)target;

            for (int i = 0; i < this.m_xfData.Length; i++)
            {
                byte b  = this.m_xfData[i];
                byte b2 = bIFF8Style.m_xfData[i];
                if (b != b2)
                {
                    return(false);
                }
            }
            return(true);
        }