ITextElement.Text Property (ArcObjects .NET 10.6 SDK)
ArcObjects Library Reference (Carto)  

ITextElement.Text Property

Text being displayed by this element.

[Visual Basic .NET]
Public Property Text As String
public string Text {get; set;}
HRESULT get_Text(
  System.String* Text
HRESULT put_Text(
  BSTR Text

Parameters Text [out, retval]
Text is a parameter of type BSTR* Text [in]
Text is a parameter of type BSTR

Product Availability

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


The Text property returns or sets the text string used displayed on the map.  Use this property to manipulate the string associated with the TextElement.


See Also

ITextElement Interface

.NET Samples

Creating a toolbar of globe tools (Code Files: TextElement) | Controls commands environment (Code Files: CommandsEnvironment)

.NET Related Topics

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