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


ITextElement Interface (ArcObjects .NET 10.5 SDK)
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

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

.NET Related Topics

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