Skip to end of metadata
Go to start of metadata

Represent font.

Definition

public class Font : ModelBase

Summary

The following table summarizes the members exposed in this class.

Public Constructors

Font Constructor(string) Initializes a new instance of the Font class.
Font Constructor() Initializes a new instance of the Font class.
Font Constructor(Font) Initializes a new instance of the Font class.

Public Properties

AndroidFont Gets or sets the android font.
FontFamily Gets or sets the font family.
FontKey Gets or sets the font key.
FontSize Gets or sets the size of the font.
FontStyle Gets or sets the font style.
FontWeight Gets or sets the font weight.
iOSFont Gets or sets the iOS font.
TextColor Gets or sets the color of the text.

Public Methods

GetFont() Gets the font.
getPxFromDp(float) Gets the px from dp.

Public Constructors

public Font(string font)

Initializes a new instance of the Font class.

Parameters

font The font.

public Font()

Initializes a new instance of the Font class.

public Font(Font font)

Initializes a new instance of the Font class.

Parameters

font The font.

Public Properties

public Font AndroidFont { get; set; }

Gets or sets the android font.

public string FontFamily { get; set; }

Gets or sets the font family.

public string FontKey { get; set; }

Gets or sets the font key.

Remarks

Used for internal mechanism.

public int FontSize { get; set; }

Gets or sets the size of the font.

public FontStyles FontStyle { get; set; }

Gets or sets the font style.

public FontWeight FontWeight { get; set; }

Gets or sets the font weight.

public Font iOSFont { get; set; }

Gets or sets the iOS font.

public Color TextColor { get; set; }

Gets or sets the color of the text.

Public Methods

public Font GetFont()

Gets the font.

public float getPxFromDp(float scaledDensity)

Gets the px from dp.

Remarks

Used for internal mechanism.

Parameters

scaledDensity The scaled density.
  • No labels