Skip to main content

FontFamily

Version: 6.0

cete.dynamicpdf.fontfamily

FontFamily​

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 of font family.

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 of font family.

Font representing regular.

Font representing bold.

Font representing italic.

Font representing bold italic.

Properties​

Bold​

Gets the bold font.

public Font Bold { get; }
Public Property Bold As Font

Property Value​

Font

BoldItalic​

Gets the bold italic font.

public Font BoldItalic { get; }
Public Property BoldItalic As Font

Property Value​

Font

Courier​

Gets the core Courier font family.

public static FontFamily Courier { get; }
Public Shared Property Courier As FontFamily

Property Value​

FontFamily

Helvetica​

Gets the core Helvetica font family.

public static FontFamily Helvetica { get; }
Public Shared Property Helvetica As FontFamily

Property Value​

FontFamily

Italic​

Gets the italic font.

public Font Italic { get; }
Public Property Italic As Font

Property Value​

Font

Name​

Gets the name of the font family.

public string Name { get; }
Public Property Name As String

Property Value​

String

Regular​

Gets the regular font.

public Font Regular { get; }
Public Property Regular As Font

Property Value​

Font

Symbol​

Gets the core Symbol font family.

public static FontFamily Symbol { get; }
Public Shared Property Symbol As FontFamily

Property Value​

FontFamily

Times​

Gets the core Times font family.

public static FontFamily Times { get; }
Public Shared Property Times As FontFamily

Property Value​

FontFamily

ZapfDingbats​

Gets the core Zapf Dingbats font family.

public static FontFamily ZapfDingbats { get; }
Public Shared Property ZapfDingbats As FontFamily

Property Value​

FontFamily

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​

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 .

See Also​

ceTe.DynamicPDF