Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

OfficeTablePagination

Namespace OfficeIMO.Drawing
Assembly OfficeIMO.Core
Modifiers static

Shared measured-row pagination for drawing and native document tables.

Inheritance

  • Object
  • OfficeTablePagination

Methods

public static IReadOnlyList<OfficeTablePage> Paginate(IReadOnlyList<Double> rowHeights, Double availableHeight, Double headerHeight, Int32 maximumPages = 1000, CancellationToken cancellationToken = default) #
Returns: IReadOnlyList<OfficeTablePage>

Packs consecutive measured rows without splitting or dropping them. Every page includes headerHeight. Invalid dimensions, an unfit row, or an exceeded page budget fail before a partial result is returned. An empty table produces one header-only page.

Parameters

rowHeights System.Collections.Generic.IReadOnlyList{System.Double} requiredposition: 0
availableHeight System.Double requiredposition: 1
headerHeight System.Double requiredposition: 2
maximumPages System.Int32 = 1000 optionalposition: 3
cancellationToken System.Threading.CancellationToken = default optionalposition: 4