Contains styling properties used for drawing text.


The following tables list the members exposed by Font.

Public Constructors

  Name Description
Static Public method Font Overloaded.  
Top

Public Properties

  Name Description
Public property Alignment Gets or sets the text alignment style of the font.
Public property Bold Gets or sets a value that indicates whether the font is bold.
Public property Charset Gets or sets the character set used in the font.
Public property Color Gets or sets the font color.
Public property Italic Gets or sets a value that indicates whether the font is italic.
Public property Name Gets or sets the font name.
Public property Outline Gets or sets a value that indicates whether the font is outlined.
Public property OutlineColor Gets or sets the color of the font outline.
Public property Quality Gets or sets the quality of the font. This property has no effect if its value is FontQuality.Default.
Public property Size Gets or sets the font size.
Public property StrikeThrough Gets or sets a value that indicates whether the font is strikethrough.
Public property Underline Gets or sets a value that indicates whether the font is underlined.
Top

Public Methods

  Name Description
Public method GetStringHeight Returns the height of a string in pixels.
Public method GetStringWidth Returns the width of a string in pixels.
Top

Explicit Interface Implementations

  Name Description
Static Private method Font Overloaded.  
Top

See Also