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
| Name | Type | Access | Description |
|---|---|---|---|
usedHeight | : number | Read | Gets the used height. |
fits | : boolean | Read | Gets the fits. |
keepWithNextEligible | : boolean | Read | True only for headings — the elements eligible for keep-with-next. |
keepWithNext | : boolean | Read | Per-element override of the flow keep-with-next policy; undefined inherits the flow default. |
spaceBefore | : number | Read | Points to reserve above this element; treated as 0 when absent. |
spaceAfter | : number | Read | Points to reserve below this element; treated as 0 when absent. |
clear | : FlowClear | Read | Side(s) whose floats this element clears before placing; treated as none when absent. |
Methods
| Signature | Description |
|---|---|
place(ctx: PlaceContext) → PlaceResult | Calls 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. |