1 write to Cells
Microsoft.Extensions.DataIngestion.Abstractions (1)
IngestionDocumentElement.cs (1)
179Cells = Throw.IfNull(cells);
28 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 (23)
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 (20)
47Assert.Equal(5, documentTable.Cells.GetLength(0)); 48Assert.Equal(4, documentTable.Cells.GetLength(1)); 59Assert.Equal(expected, documentTable.Cells.Map(element => element!.GetMarkdown().Trim())); 86Assert.Equal(10, documentTable.Cells.GetLength(0)); // 10 rows (1 header + 9 data rows) 87Assert.Equal(3, documentTable.Cells.GetLength(1)); // 3 columns 90Assert.Equal("Flag", documentTable.Cells[0, 0]!.GetMarkdown().Trim()); 91Assert.Equal("Value", documentTable.Cells[0, 1]!.GetMarkdown().Trim()); 92Assert.Equal("Description", documentTable.Cells[0, 2]!.GetMarkdown().Trim()); 94Assert.Equal("READYTORUN_FLAG_PLATFORM_NEUTRAL_SOURCE", documentTable.Cells[1, 0]!.GetMarkdown().Trim()); 95Assert.Equal("0x00000001", documentTable.Cells[1, 1]!.GetMarkdown().Trim()); 96Assert.Contains("platform neutral", documentTable.Cells[1, 2]!.GetMarkdown().Trim()); 98Assert.Equal("READYTORUN_FLAG_PARTIAL", documentTable.Cells[3, 0]!.GetMarkdown().Trim()); 99Assert.Equal("0x00000004", documentTable.Cells[3, 1]!.GetMarkdown().Trim()); 100Assert.Null(documentTable.Cells[3, 2]); // Empty description cell is null 160Assert.Equal(2, table.Cells.GetLength(0)); 161Assert.Equal(2, table.Cells.GetLength(1)); 166Assert.Equal("**Years**", table.Cells[0, 0]!.GetMarkdown().Trim()); 167Assert.Equal("**Logo**", table.Cells[0, 1]!.GetMarkdown().Trim()); 168Assert.Equal("2020-2025", table.Cells[1, 0]!.GetMarkdown().Trim()); 170IngestionDocumentImage img = Assert.IsType<IngestionDocumentImage>(table.Cells[1, 1]);