diff --git a/ClosedXML/ClosedXML/ClosedXML/Excel/Tables/IXLTables.cs b/ClosedXML/ClosedXML/ClosedXML/Excel/Tables/IXLTables.cs index f876966..8411ce1 100644 --- a/ClosedXML/ClosedXML/ClosedXML/Excel/Tables/IXLTables.cs +++ b/ClosedXML/ClosedXML/ClosedXML/Excel/Tables/IXLTables.cs @@ -14,5 +14,8 @@ /// /// Specify what you want to clear. IXLTables Clear(XLClearOptions clearOptions = XLClearOptions.ContentsAndFormats); + + void Remove(Int32 index); + void Remove(String name); } } diff --git a/ClosedXML/ClosedXML/ClosedXML/Excel/Tables/XLTables.cs b/ClosedXML/ClosedXML/ClosedXML/Excel/Tables/XLTables.cs index c5615d7..e301539 100644 --- a/ClosedXML/ClosedXML/ClosedXML/Excel/Tables/XLTables.cs +++ b/ClosedXML/ClosedXML/ClosedXML/Excel/Tables/XLTables.cs @@ -44,5 +44,14 @@ _tables.Values.ForEach(t => t.Clear(clearOptions)); return this; } + + public void Remove(Int32 index) + { + _tables.Remove(_tables.ElementAt(index).Key); + } + public void Remove(String name) + { + _tables.Remove(name); + } } } \ No newline at end of file