cete.dynamicpdf.fontfamily
FontFamily
- Namespace: ceTe.DynamicPDF
- Assemblies: DynamicPDF.NETFramework40.dll, DynamicPDF.NETStandard20.dll
Represents a font family.
public class FontFamily
Public Class FontFamily
Inheritance: Object → FontFamily
Licensing
This class is a DynamicPDF Generator Professional Edition feature. One of the following licenses is required for non-evaluation usage:
- DynamicPDF Generator for .NET Professional Edition
- DynamicPDF Generator for .NET Enterprise Edition
- DynamicPDF Merger for .NET Professional Edition
- DynamicPDF Merger for .NET Enterprise Edition
- DynamicPDF ReportWriter for .NET Professional Edition
- DynamicPDF ReportWriter for .NET Enterprise Edition
- DynamicPDF Core Suite for .NET Professional Edition
- DynamicPDF Core Suite for .NET Enterprise Edition
Remarks
See the Font Families topic for more on font families.
Constructors
FontFamily(String, Font)
Initializes a new instance of the FontFamily class.
public FontFamily(string name, Font font)
Public Sub New (name As String, font As Font)
Parameters
- name: String
Name of font family.
- font: Font
Font representing all styles.
FontFamily(String, Font, Font, Font, Font)
Initializes a new instance of the FontFamily class.
public FontFamily(string name, Font regular, Font bold, Font italic, Font boldItalic)
Public Sub New (name As String, regular As Font, bold As Font, italic As Font, boldItalic As Font)
Parameters
- name: String
Name of font family.
- regular: Font
Font representing regular.
- bold: Font
Font representing bold.
- italic: Font
Font representing italic.
- boldItalic: Font
Font representing bold italic.
Properties
Bold
Gets the bold font.
public Font Bold { get; }
Public Property Bold As Font
Property Value
BoldItalic
Gets the bold italic font.
public Font BoldItalic { get; }
Public Property BoldItalic As Font
Property Value
Courier
Gets the core Courier font family.
public static FontFamily Courier { get; }
Public Shared Property Courier As FontFamily
Property Value
Helvetica
Gets the core Helvetica font family.
public static FontFamily Helvetica { get; }
Public Shared Property Helvetica As FontFamily
Property Value
Italic
Gets the italic font.
public Font Italic { get; }
Public Property Italic As Font
Property Value
Name
Gets the name of the font family.
public string Name { get; }
Public Property Name As String
Property Value
Regular
Gets the regular font.
public Font Regular { get; }
Public Property Regular As Font
Property Value
Symbol
Gets the core Symbol font family.
public static FontFamily Symbol { get; }
Public Shared Property Symbol As FontFamily
Property Value
Times
Gets the core Times font family.
public static FontFamily Times { get; }
Public Shared Property Times As FontFamily
Property Value
ZapfDingbats
Gets the core Zapf Dingbats font family.
public static FontFamily ZapfDingbats { get; }
Public Shared Property ZapfDingbats As FontFamily
Property Value
Methods
Equals(Object)
Determines whether the specified Object is equal to the current Object . (Inherited from Object)
public bool Equals(Object obj)
Function Equals(obj As Object) As Boolean
Parameters
- obj: Object
The Object to compare with the current Object .
Returns
true if the specified Object is equal to the current Object ; otherwise, false.
GetHashCode()
Serves as a hash function for a particular type. (Inherited from Object)
public int GetHashCode()
Function GetHashCode() As Integer
Returns
A hash code for the current Object .
GetType()
Gets the Type of the current instance. (Inherited from Object)
public Type GetType()
Function GetType() As Type
Returns
The Type instance that represents the exact runtime type of the current instance.
ToString()
Returns a String that represents the current Object . (Inherited from Object)
public string ToString()
Function ToString() As String
Returns
A String that represents the current Object .