[]
        
(Showing Draft Content)

C1.Util.DX.DirectWrite.TextAnalyzer.AnalyzeLineBreakpoints

AnalyzeLineBreakpoints Method

AnalyzeLineBreakpoints(TextAnalysisSource, int, int, TextAnalysisSink)

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

TextAnalysisSink 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(TextAnalysisQuickSource, int, int, TextAnalysisSink)

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

TextAnalysisSink 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