1 write to Cells
Microsoft.Extensions.DataIngestion.Abstractions (1)
IngestionDocumentElement.cs (1)
179Cells = Throw.IfNull(cells);
17 references to Cells
Microsoft.Extensions.DataIngestion (5)
Chunkers\ElementsChunker.cs (4)
83AddMarkdownTableSeparatorRow(columnCount: table.Cells.GetLength(1), ref tableBuilder); 103int rowCount = table.Cells.GetLength(0); 238for (int columnIndex = 0; columnIndex < table.Cells.GetLength(1); columnIndex++) 242string? cellContent = table.Cells[rowIndex, columnIndex] switch
Processors\ImageAlternativeTextEnricher.cs (1)
60foreach (var cell in table.Cells)
Microsoft.Extensions.DataIngestion.Tests (12)
Readers\DocumentReaderConformanceTests.cs (3)
147Assert.Equal(5, documentTable.Cells.GetLength(0)); 148Assert.Equal(4, documentTable.Cells.GetLength(1)); 150Assert.Equal(expected, documentTable.Cells.Map(NormalizeCell));
Readers\MarkdownReaderTests.cs (9)
47Assert.Equal(5, documentTable.Cells.GetLength(0)); 48Assert.Equal(4, documentTable.Cells.GetLength(1)); 59Assert.Equal(expected, documentTable.Cells.Map(element => element!.GetMarkdown().Trim())); 119Assert.Equal(2, table.Cells.GetLength(0)); 120Assert.Equal(2, table.Cells.GetLength(1)); 125Assert.Equal("**Years**", table.Cells[0, 0]!.GetMarkdown().Trim()); 126Assert.Equal("**Logo**", table.Cells[0, 1]!.GetMarkdown().Trim()); 127Assert.Equal("2020-2025", table.Cells[1, 0]!.GetMarkdown().Trim()); 129IngestionDocumentImage img = Assert.IsType<IngestionDocumentImage>(table.Cells[1, 1]);