ValidFiniteRect
Page layout, pagination, Form XObjects
Description
Private helper of TPDFlibDynamicComponentSession that validates that a rectangle uses finite numbers and strictly positive dimensions
Syntax
Function TPDFlibDynamicComponentSession.ValidFiniteRect(Left, Top,
Width, Height: Double): Boolean;
Parameters
Left, Top | Rectangle origin, which may be any finite value including negative offsets |
|---|---|
Width, Height | Rectangle extents, which must be finite and strictly positive |
Remarks
ComposeNextLayout validates the destination slot and the natural content canvas with this check before any component work starts
The origin coordinates are checked only for finiteness, while the extents must also be greater than zero
Return values
True | All four values are neither NaN nor infinite and both extents are greater than zero |
|---|---|
False | Any value is NaN or infinite, or either extent is zero or negative |
See also
ValidComposeResult, ComposeNextLayout, ComposeNext, TPDFlibDynamicComponentSession