IDWriteTextAnalysisSink::SetBidiLevel method (dwrite.h)

Sets a bidirectional level on the range, which is called once per run change (either explicit or resolved implicit).

Syntax

HRESULT SetBidiLevel(
  UINT32 textPosition,
  UINT32 textLength,
  UINT8  explicitLevel,
  UINT8  resolvedLevel
);

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

Requirement Value
Minimum supported client Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | UWP apps]
Target Platform Windows
Header dwrite.h
Library Dwrite.lib
DLL Dwrite.dll

See also

IDWriteTextAnalysisSink