Show / Hide Table of Contents

Constructor TextSymbol

TextSymbol()

Initializes a new instance of the TextSymbol class with default values.

Declaration
public TextSymbol()
Remarks

The default values are:

  • Color, black
  • Size, 8.0
  • FontStyle, Normal
  • FontWeight, Normal
  • HorizontalAlignment, Center
  • VerticalAlignment, Middle
  • FontDecoration, None

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.0 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.0 - 200.7
Xamarin.Android100.0 - 100.15
Xamarin.iOS100.0 - 100.15
UWP100.0 - 200.7
Relevant samples
Add graphics with symbols: Use a symbol style to display a graphic on a graphics overlay.
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.

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

Initializes a new instance of the TextSymbol class.

Declaration
public TextSymbol(string text, Color color, double size, HorizontalAlignment hAlign, VerticalAlignment vAlign)
Parameters
Type Name Description
System.String text

The text to be displayed for the associated graphic.

System.Drawing.Color color

The color of the text symbol.

System.Double size

The size of the text symbol.

HorizontalAlignment hAlign

The horizontal alignment of the text.

VerticalAlignment vAlign

The vertical alignment of the text.

Applies to

Platforms and versions
TargetVersions
.NET Standard 2.0100.3 - 200.7
.NET100.13 - 200.7
.NET Windows100.13 - 200.7
.NET Android200.2 - 200.7
.NET iOS200.0 - 200.7
.NET Framework100.3 - 200.7
Xamarin.Android100.0 - 100.14
Xamarin.iOS100.0 - 100.15
UWP100.3 - 200.7
In This Article
Back to top Copyright © 2022 Esri.