private IWordDocumentTable GetTable(string name) { var tbl = new WordDocumentTable(Doc); if (tbl.Select(name)) { return(tbl); } return(null); }
private void FillItems() { Items = new Dictionary <string, IWordDocumentTable>(StringComparer.OrdinalIgnoreCase); if (Element == null) { return; } var tables = Element.Descendants <Table>(); foreach (var t in tables) { var el = new WordDocumentTable(Doc, t); Items.Add(el.Name, el); } }