XLSight.Layout
0.1.1
See the version list below for details.
dotnet add package XLSight.Layout --version 0.1.1
NuGet\Install-Package XLSight.Layout -Version 0.1.1
<PackageReference Include="XLSight.Layout" Version="0.1.1" />
<PackageVersion Include="XLSight.Layout" Version="0.1.1" />
<PackageReference Include="XLSight.Layout" />
paket add XLSight.Layout --version 0.1.1
#r "nuget: XLSight.Layout, 0.1.1"
#:package XLSight.Layout@0.1.1
#addin nuget:?package=XLSight.Layout&version=0.1.1
#tool nuget:?package=XLSight.Layout&version=0.1.1
XLSight.Layout
XLSight.Layout is an optional package for best-effort worksheet structure analysis. It uses the format-neutral scan path in XLSight. It can find tables, labels, and data blocks in an unknown worksheet.
Result
AnalyzeLayout returns a SheetLayoutInfo with three collections:
- Axes are label rows and columns, such as a year header or a row-label
column. Each axis has an orientation, role, value kind, range, samples, and
an optional title. It can also contain sections such as
FundingandLoans. - Measure fields are rectangular data blocks. They include standard tables, numeric matrices, and vectors without headers. Each field lists its axes and value profile. The profile contains cell, numeric, text, and formula counts. It also contains the numeric minimum and maximum.
- Groups combine fields that share axes. Each group has a bounding range and an optional title from the worksheet.
Limits
Layout analysis uses heuristics, so the result can differ from the intended worksheet structure. Use the result to find useful ranges or select a range and headers for XLSight.Query.
Example
using XLSight;
using XLSight.Layout;
using var workbook = ExcelWorkbook.Open("model.xlsx");
SheetLayoutInfo layout = workbook.AnalyzeLayout("Financials");
foreach (LayoutGroupInfo group in layout.Groups)
{
Console.WriteLine($"{group.Title ?? group.Id}: {group.Range}");
}
The asynchronous API accepts a cancellation token:
SheetLayoutInfo layout = await workbook.AnalyzeLayoutAsync("Financials", cancellationToken);
Each layout analysis scans the selected worksheet. Core Analyze and
AnalyzeSheet do not run layout heuristics.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- XLSight (>= 0.8.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.