PdfFonts Class
Provides enumeration support for PdfFontFamily and PdfFontFace objects.
- Inheritance:
- System.ObjectPdfFonts
Properties
StandardFontFaces
Gets the collection of PdfFontFace objects that represent the PDF standard Type 1 fonts.
public static ICollection<PdfFontFace> StandardFontFaces { get; }
Public Shared ReadOnly Property StandardFontFaces As ICollection(Of PdfFontFace)
Property Value
- System.Collections.Generic.ICollection<PdfFontFace>
An System.Collections.Generic.ICollection<T> of PdfFontFace objects that represent the PDF standard Type 1 fonts.
See Also
StandardFontFamilies
Gets the collection of PdfFontFamily objects that represent the PDF standard Type 1 fonts.
public static ICollection<PdfFontFamily> StandardFontFamilies { get; }
Public Shared ReadOnly Property StandardFontFamilies As ICollection(Of PdfFontFamily)
Property Value
- System.Collections.Generic.ICollection<PdfFontFamily>
An System.Collections.Generic.ICollection<T> of PdfFontFamily objects that represent the PDF standard Type 1 fonts.
See Also
SystemFontFaces
Gets the collection of PdfFontFace objects from the default system font location.
public static ICollection<PdfFontFace> SystemFontFaces { get; }
Public Shared ReadOnly Property SystemFontFaces As ICollection(Of PdfFontFace)
Property Value
- System.Collections.Generic.ICollection<PdfFontFace>
An System.Collections.Generic.ICollection<T> of PdfFontFace objects that represent the fonts in the system fonts collection.
SystemFontFamilies
Gets the collection of PdfFontFamily objects from the default system font location.
public static ICollection<PdfFontFamily> SystemFontFamilies { get; }
Public Shared ReadOnly Property SystemFontFamilies As ICollection(Of PdfFontFamily)
Property Value
- System.Collections.Generic.ICollection<PdfFontFamily>
An System.Collections.Generic.ICollection<T> of PdfFontFamily objects that represent the fonts in the system fonts collection.
Methods
GetFontFaces(String)
Returns the collection of PdfFontFace objects from a string value that represents the location of the fonts.
public static ICollection<PdfFontFace> GetFontFaces(string location)
Public Shared Function GetFontFaces(location As String) As ICollection(Of PdfFontFace)
Parameters
location
- System.String
The location that contains the fonts.
Returns
- System.Collections.Generic.ICollection<PdfFontFace>
An System.Collections.Generic.ICollection<T> of PdfFontFace objects that represent the fonts in location
.
Remarks
If location
is null or System.String.Empty, System.IO.Directory.GetCurrentDirectory is used.
If location
is relative, it is converted to absolute with System.IO.Path.GetFullPath(System.String) method.
GetFontFaces(String, String)
Returns the collection of PdfFontFace objects embedded as resources in the specified assembly at the specified location.
Read the Remarks for details about the arguments of the GetFontFaces(String, String) method for desktop and web applications.
public static ICollection<PdfFontFace> GetFontFaces(string assemblyName, string location)
Public Shared Function GetFontFaces(assemblyName As String, location As String) As ICollection(Of PdfFontFace)
Parameters
assemblyName
- System.String
The name of the assembly that contains the fonts.
location
- System.String
The location of the fonts in the assembly.
Returns
- System.Collections.Generic.ICollection<PdfFontFace>
An System.Collections.Generic.ICollection<T> of PdfFontFace objects embedded as resources in the specified assembly at the specified location.
GetFontFamilies(String)
Returns the collection of PdfFontFamily objects from a string value that represents the location of the fonts.
public static ICollection<PdfFontFamily> GetFontFamilies(string location)
Public Shared Function GetFontFamilies(location As String) As ICollection(Of PdfFontFamily)
Parameters
location
- System.String
The location that contains the fonts.
Returns
- System.Collections.Generic.ICollection<PdfFontFamily>
An System.Collections.Generic.ICollection<T> of PdfFontFamily objects that represent the fonts in location
.
Remarks
If location
is null or System.String.Empty, System.IO.Directory.GetCurrentDirectory is used.
If location
is relative, it is converted to absolute with System.IO.Path.GetFullPath(System.String) method.
GetFontFamilies(String, String)
Returns the collection of PdfFontFamily objects embedded as resources in the specified assembly at the specified location.
Read the Remarks for details about the arguments of the GetFontFamilies(String, String) method for desktop and web applications.
public static ICollection<PdfFontFamily> GetFontFamilies(string assemblyName, string location)
Public Shared Function GetFontFamilies(assemblyName As String, location As String) As ICollection(Of PdfFontFamily)
Parameters
assemblyName
- System.String
The name of the assembly that contains the fonts.
location
- System.String
The location of the fonts in the assembly.
Returns
- System.Collections.Generic.ICollection<PdfFontFamily>
An System.Collections.Generic.ICollection<T> of PdfFontFamily objects embedded as resources in the specified assembly at the specified location.