ComponentOne Bitmap for WPF
AnalyzeBidi(TextAnalysisQuickSource,Int32,Int32,TextAnalysisSink) Method

C1.WPF.DX.4 Assembly > C1.Util.DX.DirectWrite Namespace > TextAnalyzer Class > AnalyzeBidi Method : AnalyzeBidi(TextAnalysisQuickSource,Int32,Int32,TextAnalysisSink) Method
A reference to a source object to analyze.
The starting text position within the source object.
The text length to analyze.
A reference to the sink callback object that receives the text analysis.
Analyzes a text range for script directionality, reading attributes from the source and reporting levels to the sink callback {{SetBidiLevel}}.
Syntax
'Declaration
 
Public Overloads Sub AnalyzeBidi( _
   ByVal analysisSource As TextAnalysisQuickSource, _
   ByVal textPosition As System.Integer, _
   ByVal textLength As System.Integer, _
   ByVal analysisSink As TextAnalysisSink _
) 
public void AnalyzeBidi( 
   TextAnalysisQuickSource analysisSource,
   System.int textPosition,
   System.int textLength,
   TextAnalysisSink analysisSink
)

Parameters

analysisSource
A reference to a source object to analyze.
textPosition
The starting text position within the source object.
textLength
The text length to analyze.
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.
See Also

Reference

TextAnalyzer Class
TextAnalyzer Members
Overload List