Class MapsFontSettings
Provides customization options for the font settings used in the Maps component, including text color, style, and size.
Inheritance
Namespace: Syncfusion.Blazor.Maps
Assembly: Syncfusion.Blazor.dll
Syntax
public class MapsFontSettings : OwningComponentBase
Constructors
MapsFontSettings()
Declaration
public MapsFontSettings()
Properties
Color
Gets or sets the color of the text used in data labels, legends, and other textual elements of the maps component.
Declaration
public string Color { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string representing the color of the text (e.g., "red", "#FF0000"). |
Remarks
The color specified will apply to all text elements in the maps where font settings are utilized.
FontFamily
Gets or sets the font family for the text used in data labels, legends, and other textual elements of the maps component.
Declaration
public string FontFamily { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string specifying the font family used (e.g., "Arial", "Verdana"). |
Remarks
This property allows you to customize the typeface of the text across the maps component.
FontStyle
Gets or sets the font style for the text used in data labels, legends, and other textual elements of the maps component.
Declaration
public string FontStyle { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string indicating the font style (e.g., "normal", "italic"). |
Remarks
Use this property to set the visual style of the text elements.
FontWeight
Gets or sets the font weight for the text used in data labels, legends, and other textual elements of the maps component.
Declaration
public string FontWeight { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string representing the font weight (e.g., "normal", "bold"). |
Remarks
The font weight helps to define the thickness or boldness of the text displayed.
Opacity
Gets or sets the opacity for the text used in data labels, legends, and other textual elements of the maps component.
Declaration
public double Opacity { get; set; }
Property Value
Type | Description |
---|---|
System.Double | A double value ranging from 0 to 1, where 0 is fully transparent and 1 is fully opaque. |
Remarks
Adjusting the opacity allows you to blend text elements with the background or other map features.
Size
Gets or sets the size of the text used in data labels, legends, and other textual elements.
Declaration
public virtual string Size { get; set; }
Property Value
Type | Description |
---|---|
System.String | A string that defines the size of the text (e.g., "12px"). |
Remarks
Set the font size to achieve the desired prominence of text within the maps component.
Methods
Dispose(Boolean)
Disposes the property values during the destroy of the component that is hold up for the execution of the component.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing |