ArcObjects Library Reference (Display)  

SimpleTextParser CoClass

Simple text parser object.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

The text parser used in ArcMap. This object changes the formatting of all or part of a text string.

Supported Platforms

Windows, Solaris, Linux

Interfaces

Interfaces Description
IPersist Defines the single method GetClassID, which is designed to supply the CLSID of an object that can be stored persistently in the system. IPersist is the base interface for three other interfaces: IPersistStorage, IPersistStream, and IPersistFile.
ITextParser Provides access to members that parse text strings.

Remarks

The following table describes the supported tags and their syntax. See the ArcGIS for Desktop Help for more information.

Tag

Syntax
Font

<FNT name="Arial" size="18">My text</FNT>

<FNT name="Arial" scale="200">My text</FNT>

Color <CLR red="255" green="255" blue="255">My text</CLR>
Bold <BOL>My text</BOL>
Italic <ITA>My text</ITA>
Underline <UND>My text</UND>
All Caps <ACP>My text</ACP>
Small Caps <SCP>My text</SCP>
Superscript <SUP>My text</SUP>
Character spacing (0%=regular) <CHR spacing="25">My text</CHR>
Character width (100%=regular) <CHR width="150">My text</CHR>
Word spacing (100%=regular) <WRD spacing="150">My text</WRD>
Leading (0 pts=regular) <LIN leading="12">My text</LIN>
Un-Italic <_ITA>My text</_ITA>
Un-Underline <_UND>My text</_UND>
Un-Superscript <_SUP>My text</_SUP>
Un-Bold <_BOL>My text</_BOL>

 

When the SimpleTextParser is used to parse text in a labeling expression, tag syntax varies slightly. Read more about this in the ArcGIS for Desktop Help under the index entry "labeling, expressions."