The Font type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| Font()()()() |
Constructs a Font.
| |
| Font(Int32) |
Constructs a Font.
| |
| Font(BaseFont) |
Constructs a Font.
| |
| Font(Font) | ||
| Font(Int32, Single) |
Constructs a Font.
| |
| Font(BaseFont, Single) |
Constructs a Font.
| |
| Font(Int32, Single, Int32) |
Constructs a Font.
| |
| Font(BaseFont, Single, Int32) |
Constructs a Font.
| |
| Font(Int32, Single, Int32, Color) |
Constructs a Font.
| |
| Font(BaseFont, Single, Int32, Color) |
Constructs a Font.
|
Methods
| Name | Description | |
|---|---|---|
| CompareTo |
Compares this Font with another
| |
| Difference |
Replaces the attributes that are equal to null with
the attributes of a given font.
| |
| Equals | (Inherited from Object.) | |
| Finalize |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
| GetCalculatedBaseFont | ||
| GetCalculatedLeading | ||
| GetFamilyIndex |
Translates a string-value of a certain family
into the index that is used for this family in this class.
| |
| GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
| GetStyleValue |
Translates a string-value of a certain style
into the index value is used for this style in this class.
| |
| GetType |
Gets the Type of the current instance.
(Inherited from Object.) | |
| IsBold |
checks if this font is Bold.
| |
| IsItalic |
checks if this font is Bold.
| |
| IsStandardFont |
Checks if the properties of this font are undefined or null.
If so, the standard should be used.
| |
| IsStrikethru |
checks if the style of this font is STRIKETHRU.
| |
| IsUnderlined |
checks if this font is underlined.
| |
| MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| SetColor |
Sets the color.
| |
| SetFamily |
Sets the family using a String ("Courier",
"Helvetica", "Times New Roman", "Symbol" or "ZapfDingbats").
| |
| SetStyle(Int32) | ||
| SetStyle(String) |
Sets the style using a String containing one of
more of the following values: normal, bold, italic, underline, strike.
| |
| ToString | (Inherited from Object.) |
Fields
| Name | Description | |
|---|---|---|
| BOLD | this is a possible style. | |
| BOLDITALIC | this is a possible style. | |
| COURIER | a possible value of a font family. | |
| DEFAULTSIZE | the value of the default size. | |
| HELVETICA | a possible value of a font family. | |
| ITALIC | this is a possible style. | |
| NORMAL | this is a possible style. | |
| STRIKETHRU | this is a possible style. | |
| SYMBOL | a possible value of a font family. | |
| TIMES_ROMAN | a possible value of a font family. | |
| UNDEFINED | the value of an undefined attribute. | |
| UNDERLINE | this is a possible style. | |
| ZAPFDINGBATS | a possible value of a font family. |
Properties
| Name | Description | |
|---|---|---|
| BaseFont |
Gets the BaseFont inside this object.
| |
| CalculatedSize | ||
| CalculatedStyle | ||
| Color |
Get/set the color of this font.
| |
| Family |
Gets the family of this font.
| |
| Familyname |
Gets the familyname as a string.
| |
| Size |
Get/set the size of this font.
| |
| Style |
Gets the style of this font.
|