PdfFont Class
Represents a combination of a PdfFontFace and size used for drawing character glyphs.
- Inheritance:
- System.ObjectPdfFont
Constructors
PdfFont(PdfFontFace, Double)
Initializes a new instance of the PdfFont class from the specified font face and font size.
public PdfFont(PdfFontFace face, double size)
Public Sub New(face As PdfFontFace, size As Double)
Parameters
face
- PdfFontFace
The font face.
size
- System.Double
The font size.
Exceptions
- System.ArgumentNullException
face
cannot be null.
- System.ArgumentOutOfRangeException
size
is less than 0.
- System.ArgumentException
size
is either System.Double.NaN, System.Double.NegativeInfinity or System.Double.PositiveInfinity.
PdfFont(PdfFontFamily, Double)
Initializes a new instance of the PdfFont class from the specified font family and font size.
public PdfFont(PdfFontFamily family, double size)
Public Sub New(family As PdfFontFamily, size As Double)
Parameters
family
- PdfFontFamily
The font family.
size
- System.Double
The font size.
Exceptions
- System.ArgumentNullException
family
cannot be null.
- System.ArgumentException
size
is either System.Double.NaN, System.Double.NegativeInfinity or System.Double.PositiveInfinity.
- System.ArgumentOutOfRangeException
size
is less than 0.
PdfFont(String, Double)
Initializes a new instance of the PdfFont class from the specified font face name and font size.
Parameters
name
- System.String
The font face name.
size
- System.Double
The font size.
Exceptions
- System.ArgumentNullException
name
cannot be null.
- System.ArgumentException
size
is either System.Double.NaN, System.Double.NegativeInfinity or System.Double.PositiveInfinity.
- System.ArgumentOutOfRangeException
size
is less than 0.
Properties
Face
Gets the PdfFontFace associated with this PdfFont.
Property Value
The PdfFontFace associated with this PdfFont.
Size
Gets the size of this PdfFont.
Property Value
- System.Double
The size of this PdfFont.
Methods
ToString()
Returns a System.String that represents this PdfFont instance.
Returns
- System.String
A System.String that represents this PdfFont instance.
Overrides
Remarks
This method should be used primarily for debugging purposes and should be considered volatile (format of its return value might change in future versions).