[]
Analyzes a text range for script directionality, reading attributes from the source and reporting levels to the sink callback {{SetBidiLevel}}.
public void AnalyzeBidi(TextAnalysisSource analysisSource, int textPosition, int textLength, TextAnalysisSink analysisSink)
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. |
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.
Analyzes a text range for script directionality, reading attributes from the source and reporting levels to the sink callback {{SetBidiLevel}}.
public void AnalyzeBidi(TextAnalysisQuickSource analysisSource, int textPosition, int textLength, TextAnalysisSink analysisSink)
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. |
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.
HRESULT IDWriteTextAnalyzer::AnalyzeBidi([In] IDWriteTextAnalysisSource* analysisSource,[In] unsigned int textPosition,[In] unsigned int textLength,[In] IDWriteTextAnalysisSink* analysisSink)
public void AnalyzeBidi(IntPtr analysisSource, int textPosition, int textLength, IntPtr analysisSink)
Type | Name | Description |
---|---|---|
IntPtr | analysisSource | |
int | textPosition | |
int | textLength | |
IntPtr | analysisSink |