[]
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}}.
public void AnalyzeNumberSubstitution(TextAnalysisSource analysisSource, int textPosition, int textLength, TextAnalysisSink analysisSink)
Type | Name | Description |
---|---|---|
TextAnalysisSource | analysisSource | The source object to analyze. |
int | textPosition | The starting position within the source object. |
int | textLength | The length to analyze. |
TextAnalysisSink | analysisSink | A reference to the sink callback object that receives the text analysis. |
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.
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}}.
public void AnalyzeNumberSubstitution(TextAnalysisQuickSource analysisSource, int textPosition, int textLength, TextAnalysisSink analysisSink)
Type | Name | Description |
---|---|---|
TextAnalysisQuickSource | analysisSource | The source object to analyze. |
int | textPosition | The starting position within the source object. |
int | textLength | The length to analyze. |
TextAnalysisSink | analysisSink | A reference to the sink callback object that receives the text analysis. |
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.
HRESULT IDWriteTextAnalyzer::AnalyzeNumberSubstitution([In] IDWriteTextAnalysisSource* analysisSource,[In] unsigned int textPosition,[In] unsigned int textLength,[In] IDWriteTextAnalysisSink* analysisSink)
public void AnalyzeNumberSubstitution(IntPtr analysisSource, int textPosition, int textLength, IntPtr analysisSink)
Type | Name | Description |
---|---|---|
IntPtr | analysisSource | |
int | textPosition | |
int | textLength | |
IntPtr | analysisSink |