[]
        
(Showing Draft Content)

GrapeCity.Documents.DX.DirectWrite.TextAnalyzer.AnalyzeLineBreakpoints

AnalyzeLineBreakpoints Method

AnalyzeLineBreakpoints(ITextAnalysisSource, int, int, ITextAnalysisSink)

Analyzes a text range for potential breakpoint opportunities, reading attributes from the source and reporting breakpoint opportunities to the sink callback {{SetLineBreakpoints}}.

Declaration
public void AnalyzeLineBreakpoints(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.

Remarks

Although the function can handle multiple paragraphs, the text range should not arbitrarily split the middle of paragraphs, unless the specified text span is considered a whole unit. Otherwise, the returned properties for the first and last characters will inappropriately allow breaks.

AnalyzeLineBreakpoints(ITextAnalysisQuickSource, int, int, ITextAnalysisSink)

Analyzes a text range for potential breakpoint opportunities, reading attributes from the source and reporting breakpoint opportunities to the sink callback {{SetLineBreakpoints}}.

Declaration
public void AnalyzeLineBreakpoints(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.

Remarks

Although the function can handle multiple paragraphs, the text range should not arbitrarily split the middle of paragraphs, unless the specified text span is considered a whole unit. Otherwise, the returned properties for the first and last characters will inappropriately allow breaks.

AnalyzeLineBreakpoints(IntPtr, int, int, IntPtr)

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

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