PdfSharp-GDI
1.31.7289
|
Defines an object used to draw text. More...
Public Member Functions | |
XFont (string familyName, double emSize) | |
Initializes a new instance of the XFont class. More... | |
XFont (string familyName, double emSize, XFontStyle style) | |
Initializes a new instance of the XFont class. More... | |
XFont (string familyName, double emSize, XFontStyle style, XPdfFontOptions pdfOptions) | |
Initializes a new instance of the XFont class. More... | |
XFont (System.Drawing.FontFamily family, double emSize, XFontStyle style, XPdfFontOptions pdfOptions) | |
Initializes a new instance of the XFont class. More... | |
double | 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. More... | |
double | GetHeight (XGraphics graphics) |
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 More... | |
Properties | |
System.Drawing.FontFamily | GdiFamily [get] |
Gets the GDI family. More... | |
XFontFamily | FontFamily [get] |
Gets the XFontFamily object associated with this XFont object. More... | |
string | Name [get] |
Gets the face name of this Font object. More... | |
double | Size [get] |
Gets the em-size of this Font object measured in the unit of this Font object. More... | |
int | Height [get] |
Gets the line spacing of this font. More... | |
XFontStyle | Style [get] |
Gets style information for this Font object. More... | |
bool | Bold [get] |
Indicates whether this XFont object is bold. More... | |
bool | Italic [get] |
Indicates whether this XFont object is italic. More... | |
bool | Strikeout [get] |
Indicates whether this XFont object is stroke out. More... | |
bool | Underline [get] |
Indicates whether this XFont object is underlined. More... | |
XPdfFontOptions | PdfOptions [get] |
Gets the PDF options of the font. More... | |
XFontMetrics | Metrics [get] |
Gets the metrics. More... | |
Defines an object used to draw text.
PdfSharp.Drawing.XFont.XFont | ( | string | familyName, |
double | emSize | ||
) |
Initializes a new instance of the XFont class.
familyName | Name of the font family. |
emSize | The em size. |
PdfSharp.Drawing.XFont.XFont | ( | string | familyName, |
double | emSize, | ||
XFontStyle | style | ||
) |
Initializes a new instance of the XFont class.
familyName | Name of the font family. |
emSize | The em size. |
style | The font style. |
PdfSharp.Drawing.XFont.XFont | ( | string | familyName, |
double | emSize, | ||
XFontStyle | style, | ||
XPdfFontOptions | pdfOptions | ||
) |
Initializes a new instance of the XFont class.
familyName | Name of the font family. |
emSize | The em size. |
style | The font style. |
pdfOptions | Additional PDF options. |
PdfSharp.Drawing.XFont.XFont | ( | System.Drawing.FontFamily | family, |
double | emSize, | ||
XFontStyle | style, | ||
XPdfFontOptions | pdfOptions | ||
) |
Initializes a new instance of the XFont class.
family | The font family. |
emSize | The em size. |
style | The font style. |
pdfOptions | Additional PDF options. |
double PdfSharp.Drawing.XFont.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.
double PdfSharp.Drawing.XFont.GetHeight | ( | XGraphics | graphics | ) |
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
|
get |
Indicates whether this XFont object is bold.
|
get |
Gets the XFontFamily object associated with this XFont object.
|
get |
Gets the GDI family.
The GDI family.
|
get |
Gets the line spacing of this font.
|
get |
Indicates whether this XFont object is italic.
|
get |
Gets the metrics.
The metrics.
|
get |
Gets the face name of this Font object.
|
get |
Gets the PDF options of the font.
|
get |
Gets the em-size of this Font object measured in the unit of this Font object.
|
get |
Indicates whether this XFont object is stroke out.
|
get |
Gets style information for this Font object.
|
get |
Indicates whether this XFont object is underlined.