[]
Analyzes a text range for potential breakpoint opportunities, reading attributes from the source and reporting breakpoint opportunities to the sink callback {{SetLineBreakpoints}}.
public void AnalyzeLineBreakpoints(TextAnalysisSource analysisSource, int textPosition, int textLength, TextAnalysisSink analysisSink)
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. |
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.
Analyzes a text range for potential breakpoint opportunities, reading attributes from the source and reporting breakpoint opportunities to the sink callback {{SetLineBreakpoints}}.
public void AnalyzeLineBreakpoints(TextAnalysisQuickSource analysisSource, int textPosition, int textLength, TextAnalysisSink analysisSink)
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. |
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.
HRESULT IDWriteTextAnalyzer::AnalyzeLineBreakpoints([In] IDWriteTextAnalysisSource* analysisSource,[In] unsigned int textPosition,[In] unsigned int textLength,[In] IDWriteTextAnalysisSink* analysisSink)
public void AnalyzeLineBreakpoints(IntPtr analysisSource, int textPosition, int textLength, IntPtr analysisSink)
Type | Name | Description |
---|---|---|
IntPtr | analysisSource | |
int | textPosition | |
int | textLength | |
IntPtr | analysisSink |