Esempio n. 1
0
 internal virtual EscherProperty getEscherPropertyByID(int id)
 {
     for (int i = 0; i < m_properties.Count; i++)
     {
         EscherProperty escherProperty = (EscherProperty)m_properties[i];
         if (escherProperty.Id == id)
         {
             return(escherProperty);
         }
     }
     return(null);
 }
Esempio n. 2
0
            public virtual int Compare(object o1, object o2)
            {
                EscherProperty escherProperty  = (EscherProperty)o1;
                EscherProperty escherProperty2 = (EscherProperty)o2;

                if (escherProperty.PropertyNumber >= escherProperty2.PropertyNumber)
                {
                    if (escherProperty.PropertyNumber != escherProperty2.PropertyNumber)
                    {
                        return(1);
                    }
                    return(0);
                }
                return(-1);
            }
Esempio n. 3
0
        internal override int Serialize(BinaryWriter dataWriter)
        {
            dataWriter.Write(getOptions());
            dataWriter.Write(GetRecordId());
            dataWriter.Write(PropertiesSize);
            int         num        = 8;
            IEnumerator enumerator = m_properties.GetEnumerator();

            while (enumerator.MoveNext())
            {
                EscherProperty escherProperty = (EscherProperty)enumerator.Current;
                num += escherProperty.serializeSimplePart(dataWriter);
            }
            IEnumerator enumerator2 = m_properties.GetEnumerator();

            while (enumerator2.MoveNext())
            {
                EscherProperty escherProperty2 = (EscherProperty)enumerator2.Current;
                num += escherProperty2.serializeComplexPart(dataWriter);
            }
            return(num);
        }
Esempio n. 4
0
 internal virtual void addEscherProperty(EscherProperty prop)
 {
     m_properties.Add(prop);
 }