IDWriteTextAnalysisSink::SetBidiLevel method
Sets a bidirectional level on the range, which is called once per run change (either explicit or resolved implicit).
Syntax
virtual HRESULT SetBidiLevel(
UINT32 textPosition,
UINT32 textLength,
UINT8 explicitLevel,
UINT8 resolvedLevel
) = 0;
Parameters
- textPosition
-
Type: UINT32
The starting position from which to report.
- textLength
-
Type: UINT32
The number of UTF16 units of the reported range.
- explicitLevel
-
Type: UINT8
The explicit level from the paragraph reading direction and any embedded control codes RLE/RLO/LRE/LRO/PDF, which is determined before any additional rules.
- resolvedLevel
-
Type: UINT8
The final implicit level considering the explicit level and characters' natural directionality, after all Bidi rules have been applied.
Return value
Type: HRESULT
A successful code or error code to stop analysis.
Requirements
|
Minimum supported client |
Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | Windows Store apps] |
|---|---|
|
Minimum supported server |
Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | Windows Store apps] |
|
Minimum supported phone |
Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps] |
|
Header |
|
|
Library |
|
|
DLL |
|
See also