Encapsulates the font properties of text.
The following tables list the members exposed by the Font type.
Public Methods
| Name | Description | |
|---|---|---|
| Equals | (Inherited from Object.) | |
| GetHashCode | Serves as a hash function for a particular type. GetHashCode() is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| ToString | Overloaded. |
Protected Methods
| Name | Description | |
|---|---|---|
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
Public Constructors
| Name | Description | |
|---|---|---|
| FontNew | Overloaded. |
Public Properties
| Name | Description | |
|---|---|---|
| Bold |
Gets or sets a value that indicates whether this Font object is bold.
| |
| CustomFontFile |
Gets or sets the custom font file to use for this Font object. It can be specified as a relative URL or full path pointing out to the custom font file on local disk or; as an identifier stored in the appSettings section of Web.config file.
| |
| CustomFontFileFamilyIndex |
Gets or sets the Font Family index of the type faces defined by the specified Custom Font File.
| |
| Italic |
Gets or sets a value that indicates whether this Font object is italic.
| |
| Name |
Gets or sets the face name of this Font object.
| |
| Size |
Gets or sets the size of this Font object.
| |
| Strikeout |
Gets or sets a value that indicates whether this Font object specifies a horizontal line through the font.
| |
| Underline |
Gets or sets a value that indicates whether this Font object is underlined.
| |
| Unit |
Gets or sets the unit of measure for this Font object.
|