Example #1
0
        protected XlsPicture AddNew(Image image)
        {
            XlsPicture pic = new XlsPicture(image);

            Add(pic);
            return(pic);
        }
Example #2
0
 public SheetPicture(XlsPicture xlsPicture)
 {
     this.xlsPicture = xlsPicture;
     ItemId          = Convert.ToUInt16(xlsPicture.ItemId);
     Col2Offset      = maxHorizOffset;
     Row2Offset      = maxVertOffset;
 }
Example #3
0
        protected override void OnRemoveComplete(int index, object value)
        {
            base.OnRemoveComplete(index, value);
            XlsPicture pic = (XlsPicture)value;

            ImageHash.Remove(pic.Image);
        }
Example #4
0
        protected override void OnInsertComplete(int index, object value)
        {
            base.OnInsertComplete(index, value);
            XlsPicture pic = (XlsPicture)value;

            pic.ItemId = index + 1;
            ImageHash.Add(pic.Image, pic);
        }
Example #5
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);
        }
Example #6
0
 public int Add(XlsPicture obj)
 {
     return(List.Contains(obj) ? List.IndexOf(obj) : List.Add(obj));
 }
Example #7
0
 public MsoDataBse(ushort version, ushort instance, XlsPicture picture, bool isDummy) : base(version, instance, picture)
 {
     this.isDummy = isDummy;
 }
Example #8
0
 public MsoDataBLIP(ushort version, ushort instance, XlsPicture picture) : base(version, instance)
 {
     this.picture = picture;
 }