33 references to GetCoveringCell
Microsoft.Extensions.Documents.Abstractions (2)
ExtractionDocumentTable.cs (2)
211=> GetCoveringCell(row, column) is { } cell && (cell.RowIndex != row || cell.ColumnIndex != column); 251if (GetCoveringCell(r, c) is { } existing && !ReferenceEquals(existing, replaced))
Microsoft.Extensions.Documents.Abstractions.Tests (31)
DocumentTableCellCollectionTests.cs (13)
180Assert.Same(cell, table.Cells.GetCoveringCell(row, column)); 373Assert.Same(anchor, table.Cells.GetCoveringCell(row, column)); 378Assert.Null(table.Cells.GetCoveringCell(2, 2)); 412Assert.Null(table.Cells.GetCoveringCell(1, 1)); 453Assert.Null(table.Cells.GetCoveringCell(0, 2)); 456Assert.Same(anchor, table.Cells.GetCoveringCell(1, 2)); 467Assert.Same(inAnchor ? anchor : null, table.Cells.GetCoveringCell(row, column)); 485Assert.Same(candidate, otherTable.Cells.GetCoveringCell(1, 0)); 515Assert.Same(oldAnchor, table.Cells.GetCoveringCell(1, 1)); 522Assert.Same(replacement, table.Cells.GetCoveringCell(0, 0)); 526Assert.Null(table.Cells.GetCoveringCell(row, column)); 537Assert.Same(empty, table.Cells.GetCoveringCell(0, 1)); 569Assert.Same(covering, table.Cells.GetCoveringCell(row, column));
DocumentTableCellTests.cs (6)
132Assert.Same(empty, table.Cells.GetCoveringCell(2, 2)); 133Assert.Null(table.Cells.GetCoveringCell(1, 2)); 189Assert.Same(empty, table.Cells.GetCoveringCell(0, 1)); 191Assert.Null(table.Cells.GetCoveringCell(0, 0)); 193var sources = table.Cells.GetCoveringCell(0, 1)!.Sources; 207Assert.Empty(table.Cells.GetCoveringCell(0, 2)!.Content!.Sources);
DocumentTableElementTests.cs (12)
90Assert.Same(expected, table.Cells.GetCoveringCell(row, column)); 214Assert.Same(anchor, table.Cells.GetCoveringCell(1, 1)); 246Assert.Same(cell, table.Cells.GetCoveringCell(0, 0)); 288Assert.Same(covering, table.Cells.GetCoveringCell(row, column)); 314Assert.Null(table.Cells.GetCoveringCell(0, 0)); 316Assert.Same(empty, table.Cells.GetCoveringCell(0, 1)); 331Assert.Null(table.Cells.GetCoveringCell(0, 1)); 349Assert.Null(table.Cells.GetCoveringCell(0, 0)); 376Assert.Same(empty, table.Cells.GetCoveringCell(1, 1)); 378Assert.Null(table.Cells.GetCoveringCell(0, 0)); 402Assert.Same(empty, table.Cells.GetCoveringCell(1, 1)); 417Assert.Null(table.Cells.GetCoveringCell(row, column));