New to Telerik UI for WPFStart a free 30-day trial

Represents information about a font family, including its name and available styles.

Definition

Namespace:Telerik.Windows.Documents.Layout

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

C#
[TypeConverter(typeof(FontFamilyInfoConverter))]
public class FontFamilyInfo : FontFamily

Inheritance: objectFontFamilyInfo

Constructors

Initializes a new instance of the FontFamilyInfo class.

C#
public FontFamilyInfo(FontFamily fontFamily, string displayName = null)
Parameters:fontFamilyFontFamily

The font family.

displayNamestring

The display name.

Properties

Gets the display name.

C#
public string DisplayName { get; }
Property Value:

The display name.

Methods

Determines whether the specified FontFamilyInfo instance is equal to the current FontFamilyInfo instance.

C#
public bool Equals(FontFamilyInfo value)
Parameters:valueFontFamilyInfo

The FontFamilyInfo instance to compare with the current instance.

Returns:

bool

True if the specified FontFamilyInfo is equal to the current instance; otherwise, false.

Determines whether the specified object is equal to the current object.

C#
public override bool Equals(object obj)
Parameters:objobject

The object to compare with the current object.

Returns:

bool

true if the specified object is equal to the current object; otherwise, false.

Serves as a hash function for a particular type.

C#
public override int GetHashCode()
Returns:

int

A hash code for the current object.

Returns a string representation of this FontFamilyInfo.

C#
public override string ToString()
Returns:

string

The input font family string.