public PictureWithShapeInfo(string filePath, SheetRange shapeRange = null, bool autoSize = false) { this.FilePath = filePath; this.ShapeRange = shapeRange; this.AutoSize = autoSize; this.PictureType = this.GetPictureType(filePath); }
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); }