Class Font
Assembly: Mapsui.dll
Syntax
Constructors
|
Edit this page
View Source
Font()
Declaration
|
Edit this page
View Source
Font(Font)
Declaration
Parameters
| Type |
Name |
Description |
| Font |
font |
|
Properties
|
Edit this page
View Source
Bold
Declaration
public bool Bold { get; set; }
Property Value
|
Edit this page
View Source
FontFamily
Declaration
public string? FontFamily { get; set; }
Property Value
|
Edit this page
View Source
FontSource
Optional custom font to use when rendering text with this style.
When set, the renderer loads the font from the specified URI instead of resolving
the system font by FontFamily.
Supported URI schemes: embedded://, file://, http://, https://.
Currently only supported by the experimental Skia renderer
(Mapsui.Experimental.Rendering.Skia).
Declaration
public FontSource? FontSource { get; set; }
Property Value
|
Edit this page
View Source
Invalidated
Declaration
[Obsolete("There is no need to indicate invalidation", true)]
public bool Invalidated { get; set; }
Property Value
|
Edit this page
View Source
Italic
Declaration
public bool Italic { get; set; }
Property Value
|
Edit this page
View Source
Size
Declaration
public double Size { get; set; }
Property Value
Methods
|
Edit this page
View Source
Equals(Font)
Declaration
protected bool Equals(Font other)
Parameters
| Type |
Name |
Description |
| Font |
other |
|
Returns
|
Edit this page
View Source
Equals(object?)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
The object to compare with the current object.
|
Returns
| Type |
Description |
| bool |
true if the specified object is equal to the current object; otherwise, false.
|
Overrides
|
Edit this page
View Source
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
| Type |
Description |
| int |
A hash code for the current object.
|
Overrides
|
Edit this page
View Source
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
| Type |
Description |
| string |
A string that represents the current object.
|
Overrides
Extension Methods