public virtual EscherProperty getEscherPropertyByID(int id)
 {
     for (int i = 0; i < this.m_properties.Count; i++)
     {
         EscherProperty escherProperty = (EscherProperty)this.m_properties[i];
         if (escherProperty.Id == id)
         {
             return(escherProperty);
         }
     }
     return(null);
 }
            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);
            }
        public override int Serialize(BinaryWriter dataWriter)
        {
            dataWriter.Write(this.getOptions());
            dataWriter.Write(this.GetRecordId());
            dataWriter.Write(this.PropertiesSize);
            int         num        = 8;
            IEnumerator enumerator = this.m_properties.GetEnumerator();

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

            while (enumerator2.MoveNext())
            {
                EscherProperty escherProperty2 = (EscherProperty)enumerator2.Current;
                num += escherProperty2.serializeComplexPart(dataWriter);
            }
            return(num);
        }
 public virtual void addEscherProperty(EscherProperty prop)
 {
     this.m_properties.Add(prop);
 }