The Font type exposes the following members.

Constructors

  NameDescription
Public methodFont()()()()
Initializes a new instance of the Font class.
Public methodFont(String, Single)
Initializes a new instance of the Font class with the specified font name and size.
Public methodFont(String, Single, FontUnit)
Initializes a new instance of the Font class with the specified font name, size and unit of measure.
Public methodFont(String, String, Single)
Initializes a new instance of the Font class with the specified custom font file and size.
Public methodFont(String, String, Double, FontUnit)
Initializes a new instance of the Font class with the specified custom font file, size and unit of measure.

Methods

  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString()()()()
Converts the Font object to a string representation, using the current CultureInfo.
(Overrides Object..::..ToString()()()().)
Public methodToString(CultureInfo)
Converts the Font object to a string representation, using the specified CultureInfo.

Properties

  NameDescription
Public propertyBold
Gets or sets a value that indicates whether this Font object is bold. Default value is false
Public propertyCustomFontFile
Gets or sets the custom font file to use for this Font object. It's the full path pointing out to the custom font file on local disk. Default value is an empty string
Public propertyCustomFontFileFamilyName
Gets or sets the Font Family name of the type faces defined by the specified Custom Font File. Default value is an empty string
Public propertyIsBitmapFont
Gets or sets whether the specified font is a Bitmap Font a.k.a. Pixel Font. Default value is false
Public propertyItalic
Gets or sets a value that indicates whether this Font object is italic. Default value is false
Public propertyName
Gets or sets the face name of this Font object. Default value is Arial
Public propertySize
Gets or sets the size of this Font object. Default value is 8
Public propertyStrikeout
Gets or sets a value that indicates whether this Font object specifies a horizontal line through the font. Default value is false
Public propertyThreshold
Gets or sets the threshold percentage used for converting the font glyphs to black and white graphics. Values range from 0 to 100. Default value is 90.
Public propertyUnderline
Gets or sets a value that indicates whether this Font object is underlined. Default value is false
Public propertyUnit
Gets or sets the unit of measure for this Font object. Default value is Point

See Also