Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All


Full code examples not included in the Microsoft Windows Software Development Kit (SDK).

The full code for these examples is available on the DirectWrite Resource Page on MSDN Code Gallery.

Code ExampleDescription
Color Drawing Effect Example Demonstrates how to apply client drawing effects to a text layout by using a custom text renderer. In this case, a color drawing effect.
Hit Testing Example Demonstrates how to perform hit testing on a text layout object. Underlines the character that is clicked on.
Inline Object Example Demonstrates how to add an inline object (in this case, an image) to a text layout.
Multiple Monitor Example Demonstrates how to ensure your application is compatible with multiple monitors.




Community Additions

© 2015 Microsoft