IDWriteTextAnalysisSource interface (dwrite.h)

Implemented by the text analyzer's client to provide text to the analyzer. It allows the separation between the logical view of text as a continuous stream of characters identifiable by unique text positions, and the actual memory layout of potentially discrete blocks of text in the client's backing store.


The IDWriteTextAnalysisSource interface inherits from the IUnknown interface. IDWriteTextAnalysisSource also has these types of members:


The IDWriteTextAnalysisSource interface has these methods.


Gets the locale name on the range affected by the text analysis.

Gets the number substitution from the text range affected by the text analysis.

Gets the paragraph reading direction.

Gets a block of text starting at the specified text position.

Gets a block of text immediately preceding the specified position.


If any of these callbacks returns an error, then the analysis functions will stop prematurely and return a callback error. Note that rather than return E_NOTIMPL, an application should stub the method and return a constant/null and S_OK.


Minimum supported client Windows 7, Windows Vista with SP2 and Platform Update for Windows Vista [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 R2, Windows Server 2008 with SP2 and Platform Update for Windows Server 2008 [desktop apps | UWP apps]
Target Platform Windows
Header dwrite.h