THPDFLayoutMeasurement Record

The measured size of a layout element under given constraints: desired and minimum extents, split capability and the computed Fits verdict

Declaration

THPDFLayoutMeasurement= record
  Width: Single;
  Height: Single;
  MinimumWidth: Single;
  MinimumHeight: Single;
  CanSplit: boolean;
  Fits: boolean;
end;

Unit

HPDFDoc

Fields

FieldPurpose
Width / HeightSize the element asks for under the supplied constraints
MinimumWidth / MinimumHeightSmallest size the element finds acceptable; negative measurements raise a range error in MeasureLayoutElement
CanSplitWhether the element can be split into a placed part and an overflow part across pages
FitsComputed by THotPDF.MeasureLayoutElement: true when width and height fit inside the available space

Usage notes

Related APIs