API Reference
WordFieldParser
Parses Word field codes and exposes their individual parts.
Inheritance
- Object
- WordFieldParser
Constructors
WordFieldParser(System.String fieldCodeDeclaration) #Fieldcodes consist of several components - similar to URLs - but OpenXML only handles the whole string. This class provides an type-based interpretation of those strings. The general syntax is: FIELDCODE [Instructions] [switches] [format_switches] The fieldcode is a string without whitespace The instructions are optionally, though some field codes (like ask) require them. Instructions are positional statements. Switches can be found alone (like \h ) or with a parameter (like \h 1223 or like \t "what so ever" ) Format switches starts with \* or \# . The latter is not implemented yet. It appears only the last format switch will be interpreted by Word - apart from MERGEFORMAT . However, in the effort to keep all information, all switches will be exported.
Parameters
- fieldCodeDeclaration System.String