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

This function can be used to read character attributes of text within the paragraph. We added this method as easier alternative to the use of CharAttr.


The method GetCharFontAt reads the font styes at a given position.


The result is a bitfield:

1 : Bold text. (C# wrapper defines enum element WPSTY.BOLD)

2 : Italic text. (C# wrapper defines enum element WPSTY.ITALIC)

4 : Underlined text. (C# wrapper defines enum element WPSTY.UNDERLINE)

8 : Strikeout text. (C# wrapper defines enum element WPSTY.STRIKEOUT)

16 : Text in super-script (C# wrapper defines enum element WPSTY.SUPERSCRIPT)

32 : Text in sub-script (C# wrapper defines enum element WPSTY.SUBSCRIPT)

64 : Hidden text, (C# wrapper: WPYST.HIDDEN)

128 : Uppercase text. (C# wrapper: WPYST.UPPERCASE)

256 : reserved.

512 : Lowercase text. (C# wrapper: WPYST.LOWERCASE)

1024 : Text which should be excluded from spellcheck (WPSTY.NOPROOF)

2048 : Double strikeout (WPSTY.DBLSTRIKEOUT)

4096 : reserved.

8192 : protected text (WPSTY.PROTECTED)


Note: Using Command #7 in ParCommand there is an optimized find routine available.

It makes it possible to search a paragraph for all occurrences of a certain attribute.


[iwpparinterface_getcharstyleat.htm]    Copyright © 2007 by WPCubed GmbH