IDWriteTextAnalyzer.AnalyzeBidi

<summary> Analyzes a text range for script directionality, reading attributes from the source and reporting levels to the sink callback SetBidiLevel. </summary> <param name="analysisSource">Source object to analyze.</param> <param name="textPosition">Starting position within the source object.</param> <param name="textLength">Length to analyze.</param> <param name="analysisSink">Callback object.</param> <returns> Standard HRESULT error code. </returns> <remarks> While the function can handle multiple paragraphs, the text range should not arbitrarily split the middle of paragraphs. Otherwise the returned levels may be wrong, since the Bidi algorithm is meant to apply to the paragraph as a whole. </remarks> <remarks> Embedded control codes (LRE/LRO/RLE/RLO/PDF) are taken into account. </remarks>

interface IDWriteTextAnalyzer
extern (Windows)
HRESULT
AnalyzeBidi

Meta