예제 #1
0
 public void WriteObject(int index, XlsStream stream)
 {
     if (index == 0)
     {
         dgContainer.ExtSize   = GetMsoDataTotalSize();
         spgrContainer.ExtSize = dgContainer.ExtSize;
         int size = dgContainer.Size;
         if (msoDataList.Count > 0)
         {
             size += ((MsoData)msoDataList[0]).Size;
         }
         stream.WriteHeader(XlsConsts.BIFFRecId_MsoDrawing, size);
         dgContainer.Write(stream);
         if (msoDataList.Count > 0)
         {
             ((MsoData)msoDataList[0]).Write(stream);
         }
     }
     else
     {
         MsoData item = (MsoData)msoDataList[index];
         stream.WriteHeader(XlsConsts.BIFFRecId_MsoDrawing, item.Size);
         item.Write(stream);
     }
 }
예제 #2
0
 public void AddItem(MsoData item)
 {
     Items.Add(item);
 }