dymaptic.GeoBlazor.Core
dymaptic.GeoBlazor.Core.Components
MapFont Class
The font used to display 2D text symbols and
3D text symbols.
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 use as a Razor Component.
public MapFont();
MapFont(Dimension, string, Nullable, Nullable, Nullable) Constructor
Constructor for use in C# code. Use named parameters (e.g., item1: value1, item2: value2) to set properties in any order.
public MapFont(dymaptic.GeoBlazor.Core.Model.Dimension? size=null, string? family=null, System.Nullable<dymaptic.GeoBlazor.Core.Enums.MapFontStyle> style=null, System.Nullable<dymaptic.GeoBlazor.Core.Enums.FontWeight> weight=null, System.Nullable<dymaptic.GeoBlazor.Core.Enums.TextDecoration> decoration=null);
Parameters
size
Dimension
The font size in points.
default 9
ArcGIS Maps SDK for JavaScript
family
System.String
The font family of the text.
default “sans-serif”
ArcGIS Maps SDK for JavaScript
style
System.Nullable<MapFontStyle>
The text style.
default “normal”
ArcGIS Maps SDK for JavaScript
weight
System.Nullable<FontWeight>
The text weight.
default “normal”
ArcGIS Maps SDK for JavaScript
decoration
System.Nullable<TextDecoration>
The text decoration.
default “none”
ArcGIS Maps SDK for JavaScript
Properties
MapFont.Decoration Property
The text decoration.
default none
ArcGIS Maps SDK for JavaScript
public System.Nullable<dymaptic.GeoBlazor.Core.Enums.TextDecoration> Decoration { get; set; }
Property Value
System.Nullable<TextDecoration>
MapFont.Family Property
The font family of the text.
public string? Family { get; set; }
Property Value
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.Model.Dimension? Size { get; set; }
Property Value
MapFont.Style Property
The text style.
default normal
ArcGIS Maps SDK for JavaScript
public System.Nullable<dymaptic.GeoBlazor.Core.Enums.MapFontStyle> Style { get; set; }
Property Value
MapFont.Weight Property
The text weight.
default normal
ArcGIS Maps SDK for JavaScript
public System.Nullable<dymaptic.GeoBlazor.Core.Enums.FontWeight> Weight { get; set; }
Property Value
Methods
MapFont.GetDecoration() Method
Asynchronously retrieve the current value of the Decoration property.
public System.Threading.Tasks.Task<System.Nullable<dymaptic.GeoBlazor.Core.Enums.TextDecoration>> GetDecoration();
Returns
System.Threading.Tasks.Task<System.Nullable<TextDecoration>>
MapFont.GetFamily() Method
Asynchronously retrieve the current value of the Family property.
public System.Threading.Tasks.Task<string?> GetFamily();
Returns
System.Threading.Tasks.Task<System.String>
MapFont.GetSize() Method
Asynchronously retrieve the current value of the Size property.
public System.Threading.Tasks.Task<dymaptic.GeoBlazor.Core.Model.Dimension?> GetSize();
Returns
System.Threading.Tasks.Task<Dimension>
MapFont.GetStyle() Method
Asynchronously retrieve the current value of the Style property.
public System.Threading.Tasks.Task<System.Nullable<dymaptic.GeoBlazor.Core.Enums.MapFontStyle>> GetStyle();
Returns
System.Threading.Tasks.Task<System.Nullable<MapFontStyle>>
MapFont.GetWeight() Method
Asynchronously retrieve the current value of the Weight property.
public System.Threading.Tasks.Task<System.Nullable<dymaptic.GeoBlazor.Core.Enums.FontWeight>> GetWeight();
Returns
System.Threading.Tasks.Task<System.Nullable<FontWeight>>
MapFont.SetDecoration(Nullable) Method
Asynchronously set the value of the Decoration property after render.
public System.Threading.Tasks.Task SetDecoration(System.Nullable<dymaptic.GeoBlazor.Core.Enums.TextDecoration> value);
Parameters
value
System.Nullable<TextDecoration>
The value to set.
Returns
MapFont.SetFamily(string) Method
Asynchronously set the value of the Family property after render.
public System.Threading.Tasks.Task SetFamily(string? value);
Parameters
value
System.String
The value to set.
Returns
MapFont.SetSize(Dimension) Method
Asynchronously set the value of the Size property after render.
public System.Threading.Tasks.Task SetSize(dymaptic.GeoBlazor.Core.Model.Dimension? value);
Parameters
value
Dimension
The value to set.
Returns
MapFont.SetStyle(Nullable) Method
Asynchronously set the value of the Style property after render.
public System.Threading.Tasks.Task SetStyle(System.Nullable<dymaptic.GeoBlazor.Core.Enums.MapFontStyle> value);
Parameters
value
System.Nullable<MapFontStyle>
The value to set.
Returns
MapFont.SetWeight(Nullable) Method
Asynchronously set the value of the Weight property after render.
public System.Threading.Tasks.Task SetWeight(System.Nullable<dymaptic.GeoBlazor.Core.Enums.FontWeight> value);
Parameters
value
System.Nullable<FontWeight>
The value to set.