# PdfFlowContext

Read-only layout context supplied to conditional and replayable flow callbacks.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfFlowContext.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfFlowContext.cs#L16)

**Modifiers**

sealed

Read-only layout context supplied to conditional and replayable flow callbacks.

## Inheritance

- object
- PdfFlowContext

## 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.

### Returned or exposed by 1

- Property [PdfFlowOptions.ShowIf](/api/pdf/officeimo-pdf-pdfflowoptions/#property-showif)

### Accepted by parameters 2

- Method [IPdfContextComponent.Compose](/api/pdf/officeimo-pdf-ipdfcontextcomponent/#method-compose-officeimo-pdf-pdfcontentbuilder-officeimo-pdf-pdfflowcontext) parameter `context`
- Method [PdfContentBuilder.Deferred](/api/pdf/officeimo-pdf-pdfcontentbuilder/#method-deferred-func-officeimo-pdf-pdfflowcontext-system-action-officeimo-pdf-pdfcontentbuilder-officeimo-pdf-pdfflowoptions-officeimo-pdf-pdflayoutpositioncapture) parameter `build`

Filter members 

Show inherited

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public int PageNumber { get; }` [#](#property-pagenumber)

[PdfFlowContext.cs:16](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfFlowContext.cs#L16)

Current one-based physical output page number.

`public OfficeLength AvailableHeight { get; }` [#](#property-availableheight)

[PdfFlowContext.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfFlowContext.cs#L18)

Remaining vertical content space in points.

`public OfficeLength FullContentHeight { get; }` [#](#property-fullcontentheight)

[PdfFlowContext.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfFlowContext.cs#L20)

Total vertical content space in the current flow frame on a new page, after active container top padding.

`public OfficeLength ContentWidth { get; }` [#](#property-contentwidth)

[PdfFlowContext.cs:22](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfFlowContext.cs#L22)

Available content width in points.

`public OfficeLength PageWidth { get; }` [#](#property-pagewidth)

[PdfFlowContext.cs:24](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfFlowContext.cs#L24)

Current page width in points.

`public OfficeLength PageHeight { get; }` [#](#property-pageheight)

[PdfFlowContext.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfFlowContext.cs#L26)

Current page height in points.

`public bool IsAtPageTop { get; }` [#](#property-isatpagetop)

[PdfFlowContext.cs:28](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Model/PdfFlowContext.cs#L28)

True when layout is at the top of the current flow frame.

<!-- PowerForge markdown artifact sha256:6C10E977D13E81EA70559D09B7ED6FBA02D608ACD0902C40B63EFB991C379580 -->
