ComponentOne Bitmap for WinForms
C1.Win.C1DX.4.5.2 Assembly / C1.Util.DX.DirectWrite Namespace / TextAnalyzer Class / AnalyzeBidi Method / AnalyzeBidi(TextAnalysisSource,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.

In This Topic
    AnalyzeBidi(TextAnalysisSource,Int32,Int32,TextAnalysisSink) Method
    In This Topic
    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 TextAnalysisSource, _
       ByVal textPosition As System.Integer, _
       ByVal textLength As System.Integer, _
       ByVal analysisSink As TextAnalysisSink _
    ) 
    public void AnalyzeBidi( 
       TextAnalysisSource 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