[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.DirectWrite.TextAnalyzer.AnalyzeScript

AnalyzeScript Method

AnalyzeScript(ITextAnalysisSource, int, int, ITextAnalysisSink)

Analyzes a text range for script boundaries, reading text attributes from the source and reporting the Unicode script ID to the sink callback {{SetScript}}.

Declaration
public void AnalyzeScript(ITextAnalysisSource analysisSource, int textPosition, int textLength, ITextAnalysisSink analysisSink)
Parameters
Type Name Description
ITextAnalysisSource analysisSource

A reference to the source object to analyze.

int textPosition

The starting text position within the source object.

int textLength

The text length to analyze.

ITextAnalysisSink analysisSink

A reference to the sink callback object that receives the text analysis.

AnalyzeScript(ITextAnalysisQuickSource, int, int, ITextAnalysisSink)

Analyzes a text range for script boundaries, reading text attributes from the source and reporting the Unicode script ID to the sink callback {{SetScript}}.

Declaration
public void AnalyzeScript(ITextAnalysisQuickSource analysisSource, int textPosition, int textLength, ITextAnalysisSink analysisSink)
Parameters
Type Name Description
ITextAnalysisQuickSource analysisSource

A reference to the source object to analyze.

int textPosition

The starting text position within the source object.

int textLength

The text length to analyze.

ITextAnalysisSink analysisSink

A reference to the sink callback object that receives the text analysis.

AnalyzeScript(IntPtr, int, int, IntPtr)

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

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