GetWrappedTextHeight
텍스트, 페이지 레이아웃
설명
현재 글꼴과 텍스트 크기를 기준으로 특정 너비에 맞춰 줄 바꿈한 텍스트 블록의 높이를 구합니다. SetBreakString 함수로 줄 바꿈 구분 기호를 설정할 수 있습니다. 기본값은 CR/LF 쌍이며 일부 시스템에서는 LineFeed가 기본일 수 있습니다
구문
Delphi
Function TPDFlib.GetWrappedTextHeight(Width: Double; Const Text: WideString): Double;
ActiveX
Function PDFlib::GetWrappedTextHeight(Width As Double, Text As String) As Double
DLL
double DLGetWrappedTextHeight(int InstanceID, double Width, const wchar_t * Text);
매개변수
| Width | 텍스트를 줄 바꿈할 블록의 너비 |
|---|---|
| Text | 줄 바꿈할 텍스트 |
반환 값
| 텍스트 블록의 높이를 반환함 |