Font

Font class

Class representing a font.

public sealed class Font

Constructors

Name Description
Font(string, float) Initializes a new instance of the Font class with a specified font family name and a size.
Font(string, float, FontStyle) Initializes a new instance of the Font class with a specified font family name, a size and a style.
Font(string, string, float) Initializes a new instance of the Font class with a specified custom font family name, folder path with a font and a size.
Font(string, string, float, FontStyle) Initializes a new instance of the Font class with a specified custom font family name, folder path with a font and a size.

Properties

Name Description
Bold { get; } Gets a value indicating whether the font is bold.
FamilyName { get; } Gets the family name of this Font.
FolderPath { get; } Represents the folder that contains TrueType font files.
Italic { get; } Gets a value indicating whether the font is italic.
Size { get; } Gets the size of this Font.
Strikeout { get; } Gets a value indicating whether the font specifies a horizontal line through the font.
Style { get; } Gets the style information for this Font.
Underline { get; } Gets a value indicating whether the font is underlined.

See Also