IDWriteInlineObject interface (dwrite.h)

Wraps an application-defined inline graphic, allowing DWrite to query metrics as if the graphic were a glyph inline with the text.


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


The IDWriteInlineObject interface has these methods.


The application implemented rendering callback (IDWriteTextRenderer::DrawInlineObject) can use this to draw the inline object without needing to cast or query the object type. The text layout does not call this method directly.

Layout uses this to determine the line-breaking behavior of the inline object among the text.

IDWriteTextLayout calls this callback function to get the measurement of the inline object.

IDWriteTextLayout calls this callback function to get the visible extents (in DIPs) of the inline object. In the case of a simple bitmap, with no padding and no overhang, all the overhangs will simply be zeroes.


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