TryGetEdgeTable
(
Microsoft.Office.Interop.Excel.Workbook oWorkbook,
out ListObject oEdgeTable
)
{
Debug.Assert(oWorkbook != null);
AssertValid();
// The DataBodyRange test catches the odd case where the user deletes
// the first data row of the table. It looks like the row is still
// there, but it's not. Continuing with a null DataBodyRange can cause
// a variety of problems.
return (
ExcelTableUtil.TryGetTable(oWorkbook, WorksheetNames.Edges,
TableNames.Edges, out oEdgeTable)
&&
oEdgeTable.DataBodyRange != null
);
}