Ejemplo n.º 1
0
 public PictureWithShapeInfo(string filePath, SheetRange shapeRange = null, bool autoSize = false)
 {
     this.FilePath    = filePath;
     this.ShapeRange  = shapeRange;
     this.AutoSize    = autoSize;
     this.PictureType = this.GetPictureType(filePath);
 }
Ejemplo n.º 2
0
        public override bool Equals(object obj)
        {
            bool flag = base.Equals(obj);

            if (!flag)
            {
                SheetRange sheetRange = obj as SheetRange;
                if (sheetRange != null)
                {
                    flag = (this.MinRow <= sheetRange.MinRow && this.MaxRow >= sheetRange.MaxRow && this.MinColumn <= sheetRange.MinColumn && this.MaxColumn >= sheetRange.MaxColumn);
                }
            }
            return(flag);
        }