FlowElement

Overview

FlowElement is a interface in Aspose.PDF FOSS for TypeScript.

A unit of flow content.

This interface declares 2 methods for FlowElement objects in TypeScript programs. Available methods include: measure, place. All public members are accessible to any TypeScript application after installing the Aspose.PDF FOSS for TypeScript package. Properties: clear, fits, keepWithNext, keepWithNextEligible, spaceAfter, spaceBefore, and 1 more.

Properties

NameTypeAccessDescription
usedHeight: numberReadGets the used height.
fits: booleanReadGets the fits.
keepWithNextEligible: booleanReadTrue only for headings — the elements eligible for keep-with-next.
keepWithNext: booleanReadPer-element override of the flow keep-with-next policy; undefined inherits the flow default.
spaceBefore: numberReadPoints to reserve above this element; treated as 0 when absent.
spaceAfter: numberReadPoints to reserve below this element; treated as 0 when absent.
clear: FlowClearReadSide(s) whose floats this element clears before placing; treated as none when absent.

Methods

SignatureDescription
place(ctx: PlaceContext)PlaceResultCalls place(ctx) on this FlowElement instance.
measure(ctx: MeasureContext){ usedHeight: number; fits: boolean }Non-destructive dry-run of {@link place}: predict the vertical space the element would consume and whether it fully fits, without drawing.