LastRequiredSlotHeight

文档部件、可变数据、文档编辑

描述

报告 TPDFlibDynamicComponentSession 合成的最近一次重试在被推迟片段可以提交之前所需的槽位高度

语法

Property TPDFlibDynamicComponentSession.LastRequiredSlotHeight: Double;

值

被推迟试验的已知所需高度;未记录重试信息时为 0

备注

最小槽位重试报告配置的 MinimumSlotHeight

内容超出槽位时的保持整体或要求完整重试,报告该次尝试的已用高度

后续高度重试报告解析出的最终片段高度加 MinimumFollowingHeight

该值在每次 ComposeNextLayout 调用开始时清零,且只在 PDF_DYNAMIC_COMPONENT_RETRY 结果时被设置,因此成功提交后保持为零

Reset 与 AttachComponent 也会清除该值

示例

Status := Session.ComposeNextLayout(
  PageNumber, 36, 72, 540, 240, Options, Placement);

if Status = PDF_DYNAMIC_COMPONENT_RETRY then
  NeededHeight := Session.LastRequiredSlotHeight;

另请参阅

LastRetryReason, KeepTogetherRetryPending, ComposeNextLayout, CreateLayoutOptions, TPDFlibDynamicComponentSession