Search Framework:
WLFont
Namespace: WealthLab.Core
Parent: Object

Represents a font in a platform-independent way.

Constructors
WLFont
public WLFont()
public WLFont(string fontName, int fontSize = 8, bool isBold = false, bool isItalic = false)

Using the optional parameters in the constructor, you can create an instance of a WLFont by specifying some or all of the desired properties.



Members
FontName
public string FontName

Specifies the font's family name, such as Arial or Tahoma.


FontSize
public int FontSize

Specifies the size of the font.


IsBold
public bool IsBold

Indicates whether the font should be rendered in bold text.


Parse
public static WLFont Parse(string s)

Returns a WLFont instance by parsing the string s which is in the format of a WLFont's ToString method.


public bool IsItalic
public bool IsItalic

Specifies whether the font should be rendered in italic text.