[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.DirectWrite.TextAnalyzer.AnalyzeNumberSubstitution

AnalyzeNumberSubstitution Method

AnalyzeNumberSubstitution(ITextAnalysisSource, int, int, ITextAnalysisSink)

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(ITextAnalysisSource analysisSource, int textPosition, int textLength, ITextAnalysisSink analysisSink)
Parameters
Type Name Description
ITextAnalysisSource analysisSource

The source object to analyze.

int textPosition

The starting position within the source object.

int textLength

The length to analyze.

ITextAnalysisSink 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(ITextAnalysisQuickSource, int, int, ITextAnalysisSink)

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(ITextAnalysisQuickSource analysisSource, int textPosition, int textLength, ITextAnalysisSink analysisSink)
Parameters
Type Name Description
ITextAnalysisQuickSource analysisSource

The source object to analyze.

int textPosition

The starting position within the source object.

int textLength

The length to analyze.

ITextAnalysisSink 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