Class
FontFamilyInfo

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:

cs-api-definition
[TypeConverter(typeof(FontFamilyInfoConverter))]
public class FontFamilyInfo : FontFamily

Inheritance: objectFontFamilyInfo

Constructors

FontFamilyInfo(FontFamily, string)

Initializes a new instance of the FontFamilyInfo class.

Declaration

cs-api-definition
public FontFamilyInfo(FontFamily fontFamily, string displayName = null)

Parameters

fontFamily

FontFamily

The font family.

displayName

string

The display name.

Properties

DisplayName

Gets the display name.

Declaration

cs-api-definition
public string DisplayName { get; }

Property Value

string

The display name.

Methods

Equals(FontFamilyInfo)

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

Declaration

cs-api-definition
public bool Equals(FontFamilyInfo value)

Parameters

value

FontFamilyInfo

The FontFamilyInfo instance to compare with the current instance.

Returns

bool

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

Equals(object)

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

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

The object to compare with the current object.

Returns

bool

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

GetHashCode()

Serves as a hash function for a particular type.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

A hash code for the current object.

ToString()

Returns a string representation of this FontFamilyInfo.

Declaration

cs-api-definition
public override string ToString()

Returns

string

The input font family string.