Exemplo n.º 1
0
        public void CanClearMergedRanges(XLClearOptions options, int expectedCount)
        {
            using (var wb = new XLWorkbook())
            {
                var ws = wb.AddWorksheet("Test");

                ws.Range("A1:C3").Merge();
                ws.Range("A4:B6").Merge();
                ws.Range("D1:F3").Merge();
                ws.Range("E4:F6").Merge();

                ws.Range("C1:D6").Clear(options);

                Assert.AreEqual(expectedCount, ws.MergedRanges.Count);
            }
        }
Exemplo n.º 2
0
 public new IXLRangeColumn Clear(XLClearOptions clearOptions = XLClearOptions.All)
 {
     base.Clear(clearOptions);
     return(this);
 }
Exemplo n.º 3
0
 public IXLTables Clear(XLClearOptions clearOptions = XLClearOptions.ContentsAndFormats)
 {
     _tables.Values.ForEach(t => t.Clear(clearOptions));
     return this;
 }
Exemplo n.º 4
0
 public IXLTables Clear(XLClearOptions clearOptions = XLClearOptions.All)
 {
     _tables.Values.ForEach(t => t.Clear(clearOptions));
     return(this);
 }
Exemplo n.º 5
0
 public IXLRangeColumns Clear(XLClearOptions clearOptions = XLClearOptions.All)
 {
     _ranges.ForEach(c => c.Clear(clearOptions));
     return(this);
 }
Exemplo n.º 6
0
 public IXLColumns Clear(XLClearOptions clearOptions = XLClearOptions.ContentsAndFormats)
 {
     _columns.ForEach(c=>c.Clear(clearOptions));
     return this;
 }
Exemplo n.º 7
0
 public new IXLRow Clear(XLClearOptions clearOptions = XLClearOptions.ContentsAndFormats)
 {
     base.Clear(clearOptions);
     return this;
 }
Exemplo n.º 8
0
 public IXLTableRows Clear(XLClearOptions clearOptions = XLClearOptions.ContentsAndFormats)
 {
     _ranges.ForEach(r => r.Clear(clearOptions));
     return(this);
 }
Exemplo n.º 9
0
 public IXLTableRows Clear(XLClearOptions clearOptions = XLClearOptions.All)
 {
     _ranges.ForEach(r => r.Clear(clearOptions));
     return(this);
 }
Exemplo n.º 10
0
 public IXLRangeRows Clear(XLClearOptions clearOptions = XLClearOptions.ContentsAndFormats)
 {
     _ranges.ForEach(c => c.Clear(clearOptions));
     return this;
 }
Exemplo n.º 11
0
 public IXLRangeRows Clear(XLClearOptions clearOptions = XLClearOptions.ContentsAndFormats)
 {
     _ranges.ForEach(c => c.Clear(clearOptions));
     return this;
 }
Exemplo n.º 12
0
 public IXLRangeColumns Clear(XLClearOptions clearOptions = XLClearOptions.ContentsAndFormats)
 {
     _ranges.ForEach(c => c.Clear(clearOptions));
     return(this);
 }
Exemplo n.º 13
0
 public IXLCells Clear(XLClearOptions clearOptions = XLClearOptions.All)
 {
     this.ForEach <XLCell>(c => c.Clear(clearOptions));
     return(this);
 }
Exemplo n.º 14
0
 public static XLCellsUsedOptions ToCellsUsedOptions(this XLClearOptions options)
 {
     return((XLCellsUsedOptions)options);
 }
Exemplo n.º 15
0
 public IXLCells Clear(XLClearOptions clearOptions = XLClearOptions.ContentsAndFormats)
 {
     this.ForEach <XLCell>(c => c.Clear(clearOptions));
     return(this);
 }
Exemplo n.º 16
0
 public new IXLRangeRow Clear(XLClearOptions clearOptions = XLClearOptions.ContentsAndFormats)
 {
     base.Clear(clearOptions);
     return(this);
 }
Exemplo n.º 17
0
 public IXLTables Clear(XLClearOptions clearOptions = XLClearOptions.ContentsAndFormats)
 {
     _tables.Values.ForEach(t => t.Clear(clearOptions));
     return(this);
 }
Exemplo n.º 18
0
 public IXLRows Clear(XLClearOptions clearOptions = XLClearOptions.ContentsAndFormats)
 {
     _rows.ForEach(c => c.Clear(clearOptions));
     return(this);
 }
Exemplo n.º 19
0
 public new IXLRow Clear(XLClearOptions clearOptions = XLClearOptions.All)
 {
     base.Clear(clearOptions);
     return(this);
 }
Exemplo n.º 20
0
 public IXLRows Clear(XLClearOptions clearOptions = XLClearOptions.All)
 {
     _rows.ForEach(c => c.Clear(clearOptions));
     return(this);
 }
Exemplo n.º 21
0
 public IXLTableRows Clear(XLClearOptions clearOptions = XLClearOptions.ContentsAndFormats)
 {
     _ranges.ForEach(r => r.Clear(clearOptions));
     return this;
 }