layout: default title: MapFont parent: Core Classes —

dymaptic.GeoBlazor.Core

dymaptic.GeoBlazor.Core.Components.Symbols

MapFont Class

The font used to display 2D text symbols and 3D text symbols. This class allows the developer to set the font’s
family, decoration, size, style, and weight properties. Take note of the “Known Limitations” for each property to
understand how they differ depending on the layer type, and if you working with a MapView or SceneView.
ArcGIS Maps SDK for JavaScript

public class MapFont : dymaptic.GeoBlazor.Core.Components.MapComponent

Inheritance System.Object 🡒 Microsoft.AspNetCore.Components.ComponentBase 🡒 MapComponent 🡒 MapFont

Constructors

MapFont() Constructor

Parameterless constructor for using as a razor component

public MapFont();

MapFont(Nullable, string, string, string) Constructor

Constructs a new MapFont in code with parameters

public MapFont(System.Nullable<int> size, string? family, string? style, string? weight);

Parameters

size System.Nullable<System.Int32>

The font size in points.

family System.String

The font family of the text.

style System.String

The text style.

weight System.String

The text weight.

Properties

MapFont.Family Property

The font family of the text.

public string? Family { get; set; }

Property Value

System.String

MapFont.FontStyle Property

The text style.

public string? FontStyle { get; set; }

Property Value

System.String

MapFont.Size Property

The font size in points. This value may be autocast with a string expressing size in points or pixels (e.g. 12px).

public dymaptic.GeoBlazor.Core.Objects.Dimension? Size { get; set; }

Property Value

Dimension

MapFont.Weight Property

The text weight.

public string? Weight { get; set; }

Property Value

System.String