Show / Hide Table of Contents

Class TextSymbol

Text symbol used to draw text as a marker symbol.

Inheritance
Object
Symbol
MarkerSymbol
TextSymbol
Implements
INotifyPropertyChanged
MarkerSymbol.Angle
MarkerSymbol.AngleAlignment
MarkerSymbol.LeaderOffsetX
MarkerSymbol.LeaderOffsetY
MarkerSymbol.OffsetX
MarkerSymbol.OffsetY
Symbol.PropertyChanged
Symbol.FromJson(String)
Symbol.ToJson()
Symbol.Clone()
Symbol.CreateSwatchAsync(Double)
Symbol.CreateSwatchAsync(Color, Double)
Symbol.CreateSwatchAsync(Int32, Int32, Single, Color, Geometry)
Symbol.CreateSwatchAsync(Int32, Int32, Double, Color)
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Esri.ArcGISRuntime.Symbology
Assembly: Esri.ArcGISRuntime.dll
Syntax
public class TextSymbol : MarkerSymbol, INotifyPropertyChanged
Remarks

Text symbols are used to display text for graphics. The graphics can be based on any type of geometry - MapPoint, Multipoint, Polyline, or Polygon.

Constructors

Name Description
TextSymbol()

Initializes a new instance of the TextSymbol class.

TextSymbol(String, Color, Double, HorizontalAlignment, VerticalAlignment)

Initializes a new instance of the TextSymbol class.

Properties

Name Description
BackgroundColor

Gets or sets the color for the text symbol background.

Color

Gets or sets the color for the text symbol.

FontDecoration

Gets or sets the type of font decoration for the text symbol.

FontFamily

Gets or sets the font family of the text symbol.

FontStyle

Gets or sets the font style of the text symbol.

FontWeight

Gets or sets the font weight of the text symbol.

HaloColor

Gets or sets the halo color for the text symbol.

HaloWidth

Gets or sets the halo width on the text symbol.

HorizontalAlignment

Gets or sets the horizontal alignment of the text symbol.

KerningEnabled

Gets or sets a value indicating whether to adjust the spacing between individual characters in the text.

OutlineColor

Gets or sets the outline color for the text symbol.

OutlineWidth

Gets or sets the outline width on the text symbol, in DIPs.

Size

Gets or sets the font size of the text symbol.

Text

Gets or sets the text of the text symbol.

VerticalAlignment

Gets or sets the vertical alignment of the text symbol.

Applies to

TargetVersions
.NET Standard 2.0100.3 - 200.0
.NET 6.0100.13 - 200.0
.NET 6.0 Windows100.13 - 200.0
.NET 6.0 Android200
.NET 6.0 iOS200
.NET Framework100.0 - 200.0
.NET 5100.10 - 100.12
.NET Core 3.1100.7 - 100.12
Android100.0 - 100.15
iOS100.0 - 100.15
UWP100.0 - 200.0

Relevant samples

Display grid: Display coordinate system grids including Latitude/Longitude, MGRS, UTM and USNG on a map view. Also, toggle label visibility and change the color of grid lines and grid labels.
Offline routing: Solve a route on-the-fly using offline data.
Route around barriers: Find a route that reaches all stops without crossing any barriers.
In This Article
Back to top Copyright © 2022 Esri.