The Font type exposes the following members.
Constructors
Name | Description | |
---|---|---|
Font()()()() |
Initializes a new instance of the Font class.
| |
Font(String, Single) |
Initializes a new instance of the Font class with the specified font name and size.
| |
Font(String, Single, FontUnit) |
Initializes a new instance of the Font class with the specified font name, size and unit of measure.
| |
Font(String, String, Single) |
Initializes a new instance of the Font class with the specified custom font file and size.
| |
Font(String, String, Double, FontUnit) |
Initializes a new instance of the Font class with the specified custom font file, size and unit of measure.
|
Methods
Name | Description | |
---|---|---|
Equals | (Inherited from Object.) | |
GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
GetType |
Gets the Type of the current instance.
(Inherited from Object.) | |
ToString()()()() |
Converts the Font object to a string representation, using the current CultureInfo.
(Overrides Object..::..ToString()()()().) | |
ToString(CultureInfo) |
Converts the Font object to a string representation, using the specified CultureInfo.
|
Properties
Name | Description | |
---|---|---|
Bold |
Gets or sets a value that indicates whether this Font object is bold. Default value is false
| |
CustomFontFile |
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
| |
CustomFontFileFamilyName |
Gets or sets the Font Family name of the type faces defined by the specified Custom Font File. Default value is an empty string
| |
IsBitmapFont |
Gets or sets whether the specified font is a Bitmap Font a.k.a. Pixel Font. Default value is false
| |
Italic |
Gets or sets a value that indicates whether this Font object is italic. Default value is false
| |
Name |
Gets or sets the face name of this Font object. Default value is Arial
| |
Size |
Gets or sets the size of this Font object. Default value is 8
| |
Strikeout |
Gets or sets a value that indicates whether this Font object specifies a horizontal line through the font. Default value is false
| |
Threshold |
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.
| |
Underline |
Gets or sets a value that indicates whether this Font object is underlined. Default value is false
| |
Unit |
Gets or sets the unit of measure for this Font object. Default value is Point
|