THotPDF.DetectParagraphDirection Method
Returns the base direction selected by the Unicode first-strong-character rule used by automatic paragraph layout
Declaration
function DetectParagraphDirection(const Text: WideString): THPDFParagraphDirection;
Unit
HPDFDoc
Parameters
| Name | Purpose |
|---|---|
Text | UTF-16 paragraph text whose base direction is required |
Return value
Returns a THPDFParagraphDirection value
Usage notes
- Neutral prefixes and digits do not decide the base direction
- Hebrew, Arabic-family scripts, N'Ko, Hanifi Rohingya, and Adlam are recognised, including supplementary-plane surrogate pairs
- Empty or all-neutral text returns
pdLeftToRight