Defines an object used to draw text.
Inheritance Hierarchy
PdfEdit.DrawingXFont
Namespace: PdfEdit.Drawing
Assembly: PdfPrintingNet (in PdfPrintingNet.dll) Version: 5.1.1.0 (5.1.1.0)
Syntax
The XFont type exposes the following members.
Constructors
Name | Description | |
---|---|---|
XFont | Initializes a new instance of the XFont class | |
XFont(Font) |
Initializes a new instance of the XFont class from a System.Drawing.Font.
| |
XFont(Font, XPdfFontOptions) |
Initializes a new instance of the XFont class from a System.Drawing.Font.
| |
XFont(String, Double) |
Initializes a new instance of the XFont class.
| |
XFont(FontFamily, Double, XFontStyle) |
Initializes a new instance of the XFont class from a System.Drawing.FontFamily.
| |
XFont(String, Double, XFontStyle) |
Initializes a new instance of the XFont class.
| |
XFont(XFontSource, Double, XPdfFontOptions) |
Initializes a new instance of the XFont class.
| |
XFont(FontFamily, Double, XFontStyle, XPdfFontOptions) |
Initializes a new instance of the XFont class from a System.Drawing.FontFamily.
| |
XFont(String, Double, XFontStyle, XPdfFontOptions) |
Initializes a new instance of the XFont class.
|
Methods
Name | Description | |
---|---|---|
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetHeight |
Returns the line spacing, in pixels, of this font. The line spacing is the vertical distance
between the base lines of two consecutive lines of text. Thus, the line spacing includes the
blank space between lines along with the height of the character itself.
| |
GetHeight(XGraphics) | Obsolete.
Returns the line spacing, in the current unit of a specified Graphics object, of this font.
The line spacing is the vertical distance between the base lines of two consecutive lines of
text. Thus, the line spacing includes the blank space between lines along with the height of
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
ToString | Returns a String that represents the current Object. (Inherited from Object.) |
Operators
Name | Description | |
---|---|---|
(Font to XFont) |
Implicit conversion form Font to XFont
|
Properties
Name | Description | |
---|---|---|
Bold |
Indicates whether this XFont object is bold.
| |
CellAscent |
Gets the cell ascent, the area above the base line that is used by the font.
| |
CellDescent |
Gets the cell descent, the area below the base line that is used by the font.
| |
CellSpace |
Gets the cell space for the font. The CellSpace is the line spacing, the sum of CellAscent and CellDescent and optionally some extra space.
| |
FontFamily |
Gets the XFontFamily object associated with this XFont object.
| |
GdiFontFamily |
Gets the GDI family.
| |
Height |
Gets the line spacing of this font.
| |
Italic |
Indicates whether this XFont object is italic.
| |
Metrics |
Gets the font metrics.
| |
Name |
WRONG: Gets the face name of this Font object.
Indeed it returns the font family name.
| |
PdfOptions |
Gets the PDF options of the font.
| |
Size |
Gets the em-size of this font measured in the unit of this font object.
| |
Strikeout |
Indicates whether this XFont object is stroke out.
| |
Style |
Gets style information for this Font object.
| |
Underline |
Indicates whether this XFont object is underlined.
|
See Also