[]
        
(Showing Draft Content)

C1.Util.DX.DirectWrite.TextAnalyzer.AnalyzeNumberSubstitution

AnalyzeNumberSubstitution Method

AnalyzeNumberSubstitution(TextAnalysisSource, int, int, TextAnalysisSink)

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}}.

Declaration
public void AnalyzeNumberSubstitution(TextAnalysisSource analysisSource, int textPosition, int textLength, TextAnalysisSink analysisSink)
Parameters
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.

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.

AnalyzeNumberSubstitution(TextAnalysisQuickSource, int, int, TextAnalysisSink)

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}}.

Declaration
public void AnalyzeNumberSubstitution(TextAnalysisQuickSource analysisSource, int textPosition, int textLength, TextAnalysisSink analysisSink)
Parameters
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.

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.

AnalyzeNumberSubstitution(IntPtr, int, int, IntPtr)

HRESULT IDWriteTextAnalyzer::AnalyzeNumberSubstitution([In] IDWriteTextAnalysisSource* analysisSource,[In] unsigned int textPosition,[In] unsigned int textLength,[In] IDWriteTextAnalysisSink* analysisSink)

Declaration
public void AnalyzeNumberSubstitution(IntPtr analysisSource, int textPosition, int textLength, IntPtr analysisSink)
Parameters
Type Name Description
IntPtr analysisSource
int textPosition
int textLength
IntPtr analysisSink