Table of Contents

Interface IDynamicContent<TState>

Namespace
Rustaveli.Pdf
Assembly
Rustaveli.Pdf.dll

Content composed afresh for every page it reaches, knowing the page and the room left on it: a running total carried from page to page, say, or a list set only as far as the page holds.

public interface IDynamicContent<TState>

Type Parameters

TState

How far the content has got, handed from one page to the next. Composing must not change it: a page may be measured more than once before it is drawn, so each composition returns the state after it instead.

Properties

Initial

How far the content has got before its first page.

TState Initial { get; }

Property Value

TState

Methods

Compose(DynamicPage, TState)

What to draw on page, having got as far as state.

DynamicPart<TState> Compose(DynamicPage page, TState state)

Parameters

page DynamicPage
state TState

Returns

DynamicPart<TState>