dymaptic.GeoBlazor.Core

dymaptic.GeoBlazor.Core.Serialization

MapFontSerializationRecord Class

Protobuf serialization record for MapFont.

public record MapFontSerializationRecord : dymaptic.GeoBlazor.Core.Serialization.MapComponentSerializationRecord<dymaptic.GeoBlazor.Core.Components.MapFont>, System.IEquatable<dymaptic.GeoBlazor.Core.Serialization.MapFontSerializationRecord>

Inheritance System.Object 🡒 MapComponentSerializationRecord 🡒 dymaptic.GeoBlazor.Core.Serialization.MapComponentSerializationRecord<MapFont> 🡒 MapFontSerializationRecord

Implements System.IEquatable<MapFontSerializationRecord>

Constructors

MapFontSerializationRecord() Constructor

Default constructor for protobuf deserialization.

public MapFontSerializationRecord();

MapFontSerializationRecord(string, Nullable, string, string, string, string) Constructor

Creates a new MapFontSerializationRecord with the specified values.

public MapFontSerializationRecord(string Id, System.Nullable<double> Size, string? Family, string? FontStyle, string? Weight, string? Decoration);

Parameters

Id System.String

Size System.Nullable<System.Double>

Family System.String

FontStyle System.String

Weight System.String

Decoration System.String

Properties

MapFontSerializationRecord.Decoration Property

The text decoration (underline, line-through, none).

public string? Decoration { get; init; }

Property Value

System.String

MapFontSerializationRecord.Family Property

The font family name.

public string? Family { get; init; }

Property Value

System.String

MapFontSerializationRecord.FontStyle Property

The font style (normal, italic, oblique).

public string? FontStyle { get; init; }

Property Value

System.String

MapFontSerializationRecord.Id Property

The unique identifier.

public string? Id { get; init; }

Property Value

System.String

MapFontSerializationRecord.IsNull Property

Indicates whether this record represents a null value.

public override bool IsNull { get; init; }

Property Value

System.Boolean

MapFontSerializationRecord.Size Property

The font size in points.

public System.Nullable<double> Size { get; init; }

Property Value

System.Nullable<System.Double>

MapFontSerializationRecord.Weight Property

The font weight (normal, bold, bolder, lighter).

public string? Weight { get; init; }

Property Value

System.String

Methods

MapFontSerializationRecord.FromSerializationRecord() Method

Converts this serialization record back to the original type.

public override dymaptic.GeoBlazor.Core.Components.MapFont? FromSerializationRecord();

Returns

MapFont