FontInfo Class

Defines a particular format for text, including font face, size, and style attributes. This class cannot be inherited.

Definition

Namespace: SMath.Drawing
Assembly: SMath.Drawing (in SMath.Drawing.dll) Version: 1.4.0.0
C#
public class FontInfo
Inheritance
Object    FontInfo

Constructors

FontInfo(FontInfo, FontfaceStyle) Initializes a new FontInfo that uses the specified existing FontInfo and FontfaceStyle enumeration.
FontInfo(IFontFamily, Single, FontfaceStyle) Initializes a new FontInfo using a specified size and style.
FontInfo(String, Single, FontfaceStyle) Initializes a new FontInfo using a specified size and style.

Properties

FontFamily Gets the IFontFamily associated with this FontInfo.
Height Gets the line spacing of this FontInfo.
Name Gets the face name of this FontInfo.
Size Gets the em-size of this FontInfo.
Style Gets style information for this FontInfo.

Methods

EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetMetrics Returns font metrics for the current FontInfo object.
GetTypeGets the Type of the current instance.
(Inherited from Object)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
ToStringReturns a string that represents the current object.
(Inherited from Object)

See Also