This document is archived and information here might be outdated.  Recommended version.


SimpleTextParser Class (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Display > ESRI.ArcGIS.Display > Classes > S > SimpleTextParser Class
ArcGIS Developer Help

SimpleTextParserClass Class

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 (esriSystem)
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."