XLSight.Layout 0.1.2

dotnet add package XLSight.Layout --version 0.1.2
                    
NuGet\Install-Package XLSight.Layout -Version 0.1.2
                    
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.2" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="XLSight.Layout" Version="0.1.2" />
                    
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.2
                    
#r "nuget: XLSight.Layout, 0.1.2"
                    
#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.2
                    
#: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.2
                    
Install as a Cake Addin
#tool nuget:?package=XLSight.Layout&version=0.1.2
                    
Install as a Cake Tool

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 Funding and Loans.
  • 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 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