ArcObjects Library Reference (Carto)  

ITextElement Interface

Provides access to members that control the Text element.

Product Availability

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

Members

Description
Read/write property ScaleText Indicates if the text scales with the map.
Read/write property Symbol Text symbol this element uses to draw itself.
Read/write property Text Text being displayed by this element.

CoClasses that implement ITextElement

CoClasses and Classes Description
ParagraphTextElement The Graphic Element to display text which flows into an area geometry.
PMFTitleTextElement The Graphic Element to display dynamic PMF titles.
TextElement The Graphic Element to display text.

Remarks

ITextElement is the main interface of the TextElement and ParagraphTextElement objects.  The interface is used to manipulate the symbol and text string associated with these element types.  The most common method for obtaining a reference to an object that implements ITextElement object is to take an IElement reference from an IGraphicsContainer and check to see if the object supports ITextElement.  If you are manipulating TextElements in an annotation feature class, it is recommended that you consult ISymbolCollectionElement for detailed information on the specialized symbol management of text in this situation.

.NET Samples

Building a MapViewer application using the ArcGIS Engine controls (Code Files: AddDateTool) | Configure a command for a specific locale (Code Files: CultureTool) | Control text symbols using the SymbologyControl (Code Files: TextSymbols) | Controls commands environment (Code Files: CommandsEnvironment) | Creating a toolbar of globe tools (Code Files: TextElement) |

.NET Related Topics

Building a map viewing application using the ArcGIS Engine controls | Working with map elements | Working with PageLayout elements |