XLSight.Layout 0.1.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package XLSight.Layout --version 0.1.0
                    
NuGet\Install-Package XLSight.Layout -Version 0.1.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="XLSight.Layout" Version="0.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="XLSight.Layout" Version="0.1.0" />
                    
Directory.Packages.props
<PackageReference Include="XLSight.Layout" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add XLSight.Layout --version 0.1.0
                    
#r "nuget: XLSight.Layout, 0.1.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package XLSight.Layout@0.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=XLSight.Layout&version=0.1.0
                    
Install as a Cake Addin
#tool nuget:?package=XLSight.Layout&version=0.1.0
                    
Install as a Cake Tool

XLSight.Layout

Optional, best-effort worksheet layout inference for XLSight. It runs heuristics over a worksheet's cells — through XLSight's format-neutral scan path — and turns an unknown sheet into a structural map: where the tables are, which rows and columns label them, and what kind of data each block holds.

AnalyzeLayout returns a SheetLayoutInfo with three collections:

  • Axes — the label rows and columns that give data meaning: a year header row, a row-label column, a peeled-off context column. Each axis carries its orientation, role (primary or context), value kind (text, numeric, or date), range, a few sample values, a probed title, and any detected sections — e.g. "Funding" / "Loans" bands within one label column.
  • Measure fields — the rectangular data blocks those axes describe, from ordinary header-run tables to numeric sensitivity matrices and header-less vectors. Each field lists the axis ids it answers to and a value profile (cell, numeric, text, and formula counts plus numeric min/max).
  • Groups — fields clustered by shared axes into logical tables, each with a bounding range and, when one is found nearby, a title from the sheet.

Because this is heuristic inference over arbitrary spreadsheets, treat the result as a best-effort map rather than ground truth. It is aimed at programmatic consumers that need to orient themselves in a workbook they have never seen — for example discovering which ranges are worth reading, or picking the range and headers to hand to XLSight.Query for aggregation.

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 equivalent accepts cancellation:

SheetLayoutInfo layout = await workbook.AnalyzeLayoutAsync("Financials", cancellationToken);

Layout analysis is an explicit worksheet scan. Core Analyze and AnalyzeSheet do not collect layout facts or run layout heuristics.

Product 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.2 344 9/8/2026
0.1.1 147 8/12/2026
0.1.0 127 7/17/2026