ComponentOne Bitmap for WinForms
C1.Win.C1DX.4.8 Assembly / C1.Util.DX.DirectWrite Namespace / TextAnalyzer Class / AnalyzeLineBreakpoints Method / AnalyzeLineBreakpoints(TextAnalysisSource,Int32,Int32,TextAnalysisSink) Method
A reference to the 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
    AnalyzeLineBreakpoints(TextAnalysisSource,Int32,Int32,TextAnalysisSink) Method
    In This Topic
    Analyzes a text range for potential breakpoint opportunities, reading attributes from the source and reporting breakpoint opportunities to the sink callback {{SetLineBreakpoints}}.
    Syntax
    'Declaration
     
    Public Overloads Sub AnalyzeLineBreakpoints( _
       ByVal analysisSource As TextAnalysisSource, _
       ByVal textPosition As System.Integer, _
       ByVal textLength As System.Integer, _
       ByVal analysisSink As TextAnalysisSink _
    ) 
    public void AnalyzeLineBreakpoints( 
       TextAnalysisSource analysisSource,
       System.int textPosition,
       System.int textLength,
       TextAnalysisSink analysisSink
    )

    Parameters

    analysisSource
    A reference to the 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
    Although the function can handle multiple paragraphs, the text range should not arbitrarily split the middle of paragraphs, unless the specified text span is considered a whole unit. Otherwise, the returned properties for the first and last characters will inappropriately allow breaks.
    See Also