示例#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);
            }
        }
示例#2
0
 public new IXLRangeColumn Clear(XLClearOptions clearOptions = XLClearOptions.All)
 {
     base.Clear(clearOptions);
     return(this);
 }
示例#3
0
 public IXLTables Clear(XLClearOptions clearOptions = XLClearOptions.ContentsAndFormats)
 {
     _tables.Values.ForEach(t => t.Clear(clearOptions));
     return this;
 }
示例#4
0
 public IXLTables Clear(XLClearOptions clearOptions = XLClearOptions.All)
 {
     _tables.Values.ForEach(t => t.Clear(clearOptions));
     return(this);
 }
示例#5
0
 public IXLRangeColumns Clear(XLClearOptions clearOptions = XLClearOptions.All)
 {
     _ranges.ForEach(c => c.Clear(clearOptions));
     return(this);
 }
 public IXLColumns Clear(XLClearOptions clearOptions = XLClearOptions.ContentsAndFormats)
 {
     _columns.ForEach(c=>c.Clear(clearOptions));
     return this;
 }
示例#7
0
 public new IXLRow Clear(XLClearOptions clearOptions = XLClearOptions.ContentsAndFormats)
 {
     base.Clear(clearOptions);
     return this;
 }
示例#8
0
 public IXLTableRows Clear(XLClearOptions clearOptions = XLClearOptions.ContentsAndFormats)
 {
     _ranges.ForEach(r => r.Clear(clearOptions));
     return(this);
 }
示例#9
0
 public IXLTableRows Clear(XLClearOptions clearOptions = XLClearOptions.All)
 {
     _ranges.ForEach(r => r.Clear(clearOptions));
     return(this);
 }
示例#10
0
 public IXLRangeRows Clear(XLClearOptions clearOptions = XLClearOptions.ContentsAndFormats)
 {
     _ranges.ForEach(c => c.Clear(clearOptions));
     return this;
 }
 public IXLRangeRows Clear(XLClearOptions clearOptions = XLClearOptions.ContentsAndFormats)
 {
     _ranges.ForEach(c => c.Clear(clearOptions));
     return this;
 }
示例#12
0
 public IXLRangeColumns Clear(XLClearOptions clearOptions = XLClearOptions.ContentsAndFormats)
 {
     _ranges.ForEach(c => c.Clear(clearOptions));
     return(this);
 }
示例#13
0
 public IXLCells Clear(XLClearOptions clearOptions = XLClearOptions.All)
 {
     this.ForEach <XLCell>(c => c.Clear(clearOptions));
     return(this);
 }
示例#14
0
 public static XLCellsUsedOptions ToCellsUsedOptions(this XLClearOptions options)
 {
     return((XLCellsUsedOptions)options);
 }
示例#15
0
 public IXLCells Clear(XLClearOptions clearOptions = XLClearOptions.ContentsAndFormats)
 {
     this.ForEach <XLCell>(c => c.Clear(clearOptions));
     return(this);
 }
示例#16
0
 public new IXLRangeRow Clear(XLClearOptions clearOptions = XLClearOptions.ContentsAndFormats)
 {
     base.Clear(clearOptions);
     return(this);
 }
示例#17
0
 public IXLTables Clear(XLClearOptions clearOptions = XLClearOptions.ContentsAndFormats)
 {
     _tables.Values.ForEach(t => t.Clear(clearOptions));
     return(this);
 }
示例#18
0
 public IXLRows Clear(XLClearOptions clearOptions = XLClearOptions.ContentsAndFormats)
 {
     _rows.ForEach(c => c.Clear(clearOptions));
     return(this);
 }
示例#19
0
 public new IXLRow Clear(XLClearOptions clearOptions = XLClearOptions.All)
 {
     base.Clear(clearOptions);
     return(this);
 }
示例#20
0
 public IXLRows Clear(XLClearOptions clearOptions = XLClearOptions.All)
 {
     _rows.ForEach(c => c.Clear(clearOptions));
     return(this);
 }
 public IXLTableRows Clear(XLClearOptions clearOptions = XLClearOptions.ContentsAndFormats)
 {
     _ranges.ForEach(r => r.Clear(clearOptions));
     return this;
 }