Пример #1
0
 public void Add(SheetPicture obj)
 {
     if (!picturesHT.ContainsKey(obj))
     {
         picturesHT.Add(obj, null);
         pictures.Add(obj);
     }
 }
Пример #2
0
        public static SheetPicture CreateInstance(int col, int row, XlsPicture xlsPicture, float relativeHorizOffset, float relativeVertOffset)
        {
            SheetPicture pic = new SheetPicture(xlsPicture);

            pic.Col1       = Convert.ToUInt16(col);
            pic.Row1       = Convert.ToUInt16(row);
            pic.Col2       = pic.Col1;
            pic.Row2       = pic.Row1;
            pic.Col1Offset = Convert.ToUInt16(relativeHorizOffset * maxHorizOffset);
            pic.Row1Offset = Convert.ToUInt16(relativeVertOffset * maxVertOffset);
            return(pic);
        }