public void Inject(IXLWorkbook workbook)
        {
            foreach (var sheetIndex in Enumerable.Range(1, workbook.Worksheets.Count))
            {
                var sheet           = workbook.Worksheet(sheetIndex);
                var markerExtractor = new MarkerExtractor(sheet, _markerOptions);
                var markers         = markerExtractor.GetMarkers();
                var markerRegions   = new MarkerRangeCollection(markers);

                foreach (var markerRegion in markerRegions)
                {
                    InjectResourceToSheet(sheet, markerRegion);
                }
            }
        }
Example #2
0
        public List <Marker> ReadMarkers(MarkerOptions markerOptions)
        {
            var markerExtractor = new MarkerExtractor(_workbook, markerOptions);

            return(markerExtractor.GetMarkers().ToList());
        }