[]
        
(Showing Draft Content)

C1.Util.DX.DirectWrite.TextAnalyzer.AnalyzeBidi

AnalyzeBidi Method

AnalyzeBidi(TextAnalysisSource, int, int, TextAnalysisSink)

Analyzes a text range for script directionality, reading attributes from the source and reporting levels to the sink callback {{SetBidiLevel}}.

Declaration
public void AnalyzeBidi(TextAnalysisSource analysisSource, int textPosition, int textLength, TextAnalysisSink analysisSink)
Parameters
Type Name Description
TextAnalysisSource analysisSource

A reference to a source object to analyze.

int textPosition

The starting text position within the source object.

int textLength

The text length to analyze.

TextAnalysisSink analysisSink

A reference to the sink callback object that receives the text analysis.

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, because the Bidi algorithm is meant to apply to the paragraph as a whole.

AnalyzeBidi(TextAnalysisQuickSource, int, int, TextAnalysisSink)

Analyzes a text range for script directionality, reading attributes from the source and reporting levels to the sink callback {{SetBidiLevel}}.

Declaration
public void AnalyzeBidi(TextAnalysisQuickSource analysisSource, int textPosition, int textLength, TextAnalysisSink analysisSink)
Parameters
Type Name Description
TextAnalysisQuickSource analysisSource

A reference to a source object to analyze.

int textPosition

The starting text position within the source object.

int textLength

The text length to analyze.

TextAnalysisSink analysisSink

A reference to the sink callback object that receives the text analysis.

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, because the Bidi algorithm is meant to apply to the paragraph as a whole.

AnalyzeBidi(IntPtr, int, int, IntPtr)

HRESULT IDWriteTextAnalyzer::AnalyzeBidi([In] IDWriteTextAnalysisSource* analysisSource,[In] unsigned int textPosition,[In] unsigned int textLength,[In] IDWriteTextAnalysisSink* analysisSink)

Declaration
public void AnalyzeBidi(IntPtr analysisSource, int textPosition, int textLength, IntPtr analysisSink)
Parameters
Type Name Description
IntPtr analysisSource
int textPosition
int textLength
IntPtr analysisSink