New to Telerik UI for WinForms? Start a free 30-day trial

Combines a font family with an optional display name; when omitted, the display name defaults to the family's source.

Definition

Namespace:Telerik.WinForms.Documents.Layout

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class FontFamilyInfo : FontFamily

Inheritance: objectFontFamilyFontFamilyInfo

Inherited Members FontFamily.Source

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 another font-family entry has the same display name and underlying font family.

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

The font-family entry to compare with this instance.

Returns:

bool

true if both the display name and font family match; 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.

Overrides: FontFamily.Equals(object)

Serves as a hash function for a particular type.

C#
public override int GetHashCode()
Returns:

int

A hash code for the current object.

Overrides: FontFamily.GetHashCode()

Returns a string representation of this FontFamilyInfo.

C#
public override string ToString()
Returns:

string

The input font family string.

Overrides: FontFamily.ToString()