Font Members
Encapsulates the textures and resources needed to render a specific font on a specific device.
The following tables list the members exposed by the Font type.
Public Constructors
Name | Description | |
---|---|---|
Font | Overloaded. Initializes a new instance of the Font class. |
Top
Public Properties
Name | Description | |
---|---|---|
Description | Gets a description of the current font object. | |
Device | Gets the device associated with a font object. | |
Disposed | Gets a value that indicates whether the object is disposed. |
Top
Public Methods
(see also Protected Methods )
Name | Description | |
---|---|---|
Dispose | Releases all resources used by the Font class. | |
DrawText | Overloaded. Draws formatted text. | |
Equals | Overloaded. Determines whether two Object instances are equal. (inherited from Object) | |
GetHashCode | Serves as a hash function for a particular type. (inherited from Object) | |
GetType | Gets the Type of the current instance. (inherited from Object) | |
MeasureString | Measures the specified string when drawn with the specified Font object and formatted with the specified StringFormat object. | |
OnLostDevice | Releases all references to video memory resources and deletes all state blocks. | |
OnResetDevice | Reinitializes settings after a device is reset. | |
PreloadText | Loads formatted text into video memory to improve the efficiency of rendering to a device. | |
ReferenceEquals | Determines whether the specified Object instances are the same instance. (inherited from Object) | |
ToString | Returns a String that represents the current Object. (inherited from Object) |
Top
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) |
Top
Public Events
Name | Description | |
---|---|---|
Disposing | Occurs when the Dispose method is called or when the Font object is finalized and collected by the garbage collector. |
Top
See Also
Reference
Font Class
Microsoft.WindowsMobile.DirectX.Direct3D Namespace