text: public override int Serialize(int offset, byte[] data,EscherSerializationListener listener){listener.BeforeRecordSerialize(offset, RecordId, this);LittleEndian.PutShort(data, offset, Options);LittleEndian.PutShort(data, offset + 2, RecordId);LittleEndian.PutInt(data, offset + 4, PropertiesSize);int pos = offset + 8;foreach (EscherProperty property in properties){pos += property.SerializeSimplePart(data, pos);}foreach (EscherProperty property in properties){pos += property.SerializeComplexPart(data, pos);}listener.AfterRecordSerialize(pos, RecordId, pos - offset, this);return pos - offset;}