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