Character Styles Category

[Top]  [Chapter]  [Previous]  [Next]

Methods to read and write the attributes, bold, italic, underlined ...


The character styles are saved as bits inside the character attribute record. TextDynamic supports the flags bold, italic, underline, strikeout, super script, sub script, hidden, uppercase, lowercase, no-proof, double strikeout and protected. Two flags are reserved.


Inside the attribute record two properties are taken for all this flags, one bitfield to enable/disable the attribute (WPAT_CharStyleON=7), a second attribute to check that a certain flag is used (WPAT_CharStyleMask=6). The methods in this category hide the complicated handling from the developer.



Since the properties all have an "undefined" state they are read and written using methods. The read method (Get) returns true if the property was set.

Read Propety:

Write Property


Other Methods


[idh_cat_charstyles.htm]    Copyright © 2007 by WPCubed GmbH