IDWriteTextAnalyzer::AnalyzeLineBreakpoints Method

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

Syntax

virtual HRESULT AnalyzeLineBreakpoints(
  IDWriteTextAnalysisSource * analysisSource,
  UINT32  textPosition,
  UINT32  textLength,
  IDWriteTextAnalysisSink * analysisSink
) = 0;

Parameter

  • analysisSource
    A pointer to the source object to analyze.

  • textPosition
    The starting text position within the source object.

  • textLength
    The text length to analyze.

  • analysisSink
    A pointer to the sink callback object that receives the text analysis.

Rückgabewert

Ist Methode erfolgreich, wird "S_OK" zurückgegeben. Andernfalls wird ein HRESULT-Fehlercode zurückgegeben.

Hinweise

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.

Anforderungen

Mindestens unterstützter Client

Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista

Mindestens unterstützter Server

Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008

Header

Dwrite.h

Bibliothek

Dwrite.lib

DLL

Dwrite.dll

Siehe auch

IDWriteTextAnalyzer