Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/
Class

PdfTablePageSummary

OfficeIMO.Pdf

Namespace
OfficeIMO.Pdf
Assembly
OfficeIMO.Pdf
Source revision
ac7e6e1bad8a with working tree changes
Modifiers
sealed

Per-page table summaries: column aggregates and the rows that show them at the bottom of every page fragment that continues on the next page (for example "Carried forward" or "Page subtotal") and at the top of every continuation fragment (for example "Brought forward").

Inheritance

  • object
  • PdfTablePageSummary

Remarks

Values reflect the body rows that actually landed on each page after layout. A body row counts toward the page where its first line is drawn. Summary rows are measured with the values they will show, so they never change which rows fit on a page after the values are known. Cells in summary rows and in the table's footer rows can contain the tokens of any declared aggregate (PdfTableAggregate.PageToken, PdfTableAggregate.BroughtForwardToken and PdfTableAggregate.RunningToken). Summary rows use the table's footer styling.

Usage

Explore 3 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Constructors

public PdfTablePageSummary() #

Methods

public PdfTableAggregate Add(PdfTableAggregate aggregate) #

Adds an aggregate and returns it.

Parameters

aggregate OfficeIMO.Pdf.PdfTableAggregate required
AddContinuationHeaderRow 2 overloads
public PdfTablePageSummary AddContinuationHeaderRow(params string[] cells) #

Adds a row drawn at the top of every continuation fragment.

Parameters

cells string[] required
public PdfTablePageSummary AddContinuationHeaderRow(params PdfTableCell[] cells) #

Adds a row drawn at the top of every continuation fragment.

Parameters

cells OfficeIMO.Pdf.PdfTableCell[] required
AddPageFooterRow 2 overloads
public PdfTablePageSummary AddPageFooterRow(params string[] cells) #

Adds a row drawn at the bottom of every page fragment that continues on a later page.

Parameters

cells string[] required
public PdfTablePageSummary AddPageFooterRow(params PdfTableCell[] cells) #

Adds a row drawn at the bottom of every page fragment that continues on a later page.

Parameters

cells OfficeIMO.Pdf.PdfTableCell[] required
public PdfTableAggregate Sum(string name, int column, string? format = null, IFormatProvider? formatProvider = null) #

Declares a sum aggregate and returns it so its tokens can be used in rows.

Parameters

name string required
column int required
format string? = null optional
formatProvider System.IFormatProvider? = null optional

Properties

public List<PdfTableAggregate> Aggregates { get; } #

Aggregates available to summary row tokens.

public List<PdfTableCell[]> PageFooterRows { get; } #

Rows drawn at the bottom of every page fragment that continues on a later page. They are not drawn on the table's final fragment, where the table's own footer rows close the table.

public List<PdfTableCell[]> ContinuationHeaderRows { get; } #

Rows drawn at the top of every continuation fragment, after the repeated header rows. They are drawn only when at least one body row appeared on an earlier page. They are laid out before the page's rows are known, so their cells can use PdfTableAggregate.BroughtForwardToken but not page or running tokens.