ComponentOne Bitmap for WinForms
C1.Win.C1DX.4.8 Assembly / C1.Util.DX.DirectWrite Namespace / TextAnalyzer Class / AnalyzeNumberSubstitution Method / AnalyzeNumberSubstitution(TextAnalysisSource,Int32,Int32,TextAnalysisSink) Method
The source object to analyze.
The starting position within the source object.
The length to analyze.
A reference to the sink callback object that receives the text analysis.

In This Topic
    AnalyzeNumberSubstitution(TextAnalysisSource,Int32,Int32,TextAnalysisSink) Method
    In This Topic
    Analyzes a text range for spans where number substitution is applicable, reading attributes from the source and reporting substitutable ranges to the sink callback {{SetNumberSubstitution}}.
    Syntax
    'Declaration
     
    Public Overloads Sub AnalyzeNumberSubstitution( _
       ByVal analysisSource As TextAnalysisSource, _
       ByVal textPosition As System.Integer, _
       ByVal textLength As System.Integer, _
       ByVal analysisSink As TextAnalysisSink _
    ) 
    public void AnalyzeNumberSubstitution( 
       TextAnalysisSource analysisSource,
       System.int textPosition,
       System.int textLength,
       TextAnalysisSink analysisSink
    )

    Parameters

    analysisSource
    The source object to analyze.
    textPosition
    The starting position within the source object.
    textLength
    The length to analyze.
    analysisSink
    A reference to the sink callback object that receives the text analysis.
    Remarks
    Although the function can handle multiple ranges of differing number substitutions, the text ranges should not arbitrarily split the middle of numbers. Otherwise, it will treat the numbers separately and will not translate any intervening punctuation.
    See Also