SetTextFlowPaginationLines

텍스트, 레이아웃

설명

현재 상자 아래쪽과 다음 상자 위쪽에 대한 독립적인 최소 줄 수를 설정합니다

구문

Delphi

Function TPDFlib.SetTextFlowPaginationLines(FlowID, OrphanLines, WidowLines: Integer): Integer;

ActiveX

Function PDFlib::SetTextFlowPaginationLines(FlowID As Long, OrphanLines As Long, WidowLines As Long) As Long

DLL

int DLSetTextFlowPaginationLines(int InstanceID, int FlowID, int OrphanLines, int WidowLines);

매개변수

FlowID
Text flow handle returned by NewTextFlow
OrphanLines
Fewest lines accepted at the bottom of an incomplete box or column
WidowLines
Fewest lines preserved for the top of the next box or column

반환 값

플로우가 유효하고 두 최소치가 모두 1 이상이면 1을, 두 값을 변경하지 않고 0을 반환합니다

비고

두 한도 모두 기본값은 1이며 상자가 남은 흐름을 갈라야 할 때만 적용됩니다

잠정 꼬리가 WidowLines보다 짧으면, 필요한 만큼의 후보 줄이 다음 상자로 옮겨지고 현재 상자에는 최소한 OrphanLines가 남습니다

어느 분할도 두 한도를 모두 만족시킬 수 없으면 그리기 호출은 0을 반환하고 흐름 커서를 그대로 두므로, 호출자가 더 큰 영역을 제공할 수 있습니다

페이지 매김은 현재 후보 줄 끝을 캐시하고 분할 지점 너머로는 설정된 과부 창까지만 재어, 남은 흐름 전체의 2차 레이아웃을 피합니다

참고 항목

SetTextFlowMinLines, DrawTextFlow, DrawTextFlowColumns, MeasureTextFlow