Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to list fonts that are used in a document

$
0
0

This example illustrates how to list fonts that are used in a document loaded into RichEditControl. To accomplish this task iterate through all characters in the document and examine a font name of every character by using the approach from the How to: Change Formatting of Selected Text help section. You can also use this technique if you wish to examine any formatting options (e.g., font color, bold flag) in the document.

Starting with version 16.1, it's possible to use the  Document Iterator object to iterate through DocumentText elements in a document and list fonts applied to these elements. Refer to the How to use Document Iterator to obtain a list of fonts that are used in a document example illustrating how to use DocumentIterator in this scenario.


Viewing all articles
Browse latest Browse all 7205

Trending Articles