FontFamily
Represents a family of related fonts.
Definition
Namespace:Telerik.WinControls.UI.Diagrams
Assembly:Telerik.WinControls.RadDiagram.dll
Syntax:
[TypeConverter(typeof(FontFamilyConverter))]
public class FontFamily
Inheritance: objectFontFamily
Constructors
Initializes a new instance of an anonymous FontFamily class.
public FontFamily()
Initializes a new instance of the FontFamily class from the specified font family name.
public FontFamily(string familyName)
The family name or names that comprise the new FontFamily. Multiple family names should be separated by commas.
Exceptions: ArgumentNullExceptionfamilyName cannot be null.
Properties
Gets the font family name that is used to construct the FontFamily object.
Methods
Gets a value that indicates whether the current font family object and the specified font family object are the same.
public override bool Equals(object o)
The FontFamily object to compare.
Returns:true if o is equal to the current FontFamily object; otherwise, false. If o is not a FontFamily object, false is returned.
Overrides:
Serves as a hash function for FontFamily. It is suitable for use in hashing algorithms and data structures such as a hash table.
Returns the name of the underlying GDI+ font family. The parameterless constructor leaves the family unset.
public override string ToString()
The wrapped font family's name.
Exceptions: NullReferenceExceptionThis instance has no wrapped font family, as with an instance created by the parameterless constructor.
Overrides:
Operators
Gets the underlying GDI+ font family represented by an initialized wrapper.
public static implicit operator FontFamily(FontFamily family)
The font-family wrapper to convert.
Returns:The wrapped FontFamily, or null if the wrapper was created by the parameterless constructor.
Exceptions: NullReferenceExceptionfamily is null.