Class
FontFamily

Represents a family of related fonts.

Definition

Namespace:Telerik.WinControls.UI.Diagrams

Assembly:Telerik.WinControls.RadDiagram.dll

Syntax:

cs-api-definition
[TypeConverter(typeof(FontFamilyConverter))]
public class FontFamily

Inheritance: objectFontFamily

Constructors

FontFamily()

Initializes a new instance of an anonymous FontFamily class.

Declaration

cs-api-definition
public FontFamily()

FontFamily(string)

Initializes a new instance of the FontFamily class from the specified font family name.

Declaration

cs-api-definition
public FontFamily(string familyName)

Parameters

familyName

string

The family name or names that comprise the new FontFamily. Multiple family names should be separated by commas.

Exceptions

ArgumentNullException

familyName cannot be null.

Properties

Source

Gets the font family name that is used to construct the FontFamily object.

Declaration

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

Property Value

string

The font family name of the FontFamily object.

Methods

Equals(object)

Gets a value that indicates whether the current font family object and the specified font family object are the same.

Declaration

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

Parameters

o

object

The FontFamily object to compare.

Returns

bool

true if o is equal to the current FontFamily object; otherwise, false. If o is not a FontFamily object, false is returned.

Overrides object.Equals(object)

GetHashCode()

Serves as a hash function for FontFamily. It is suitable for use in hashing algorithms and data structures such as a hash table.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

An int value that represents the hash code for the current object.

Overrides object.GetHashCode()

ToString()

Declaration

cs-api-definition
public override string ToString()

Returns

string

Overrides object.ToString()

Operators

implicit operator FontFamily(FontFamily)

Declaration

cs-api-definition
public static implicit operator FontFamily(FontFamily family)

Parameters

family

FontFamily

Returns

FontFamily