This documentation is archived and is not being maintained.

Font Methods

The Font type exposes the following members.

  NameDescription
Public method Clone Creates an exact copy of this Font.
Public method CreateObjRef Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Public method Dispose Releases all resources used by this Font.
Public method Equals Indicates whether the specified object is a Font and has the same FontFamily, GdiVerticalFont, GdiCharSet, Style, Size, and Unit property values as this Font. (Overrides Object.Equals(Object).)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method Static member FromHdc Creates a Font from the specified Windows handle to a device context.
Public method Static member FromHfont Creates a Font from the specified Windows handle.
Public method Static member FromLogFont(Object) Creates a Font from the specified GDI logical font (LOGFONT) structure.
Public method Static member FromLogFont(Object, IntPtr) Creates a Font from the specified GDI logical font (LOGFONT) structure.
Public method GetHashCode Gets the hash code for this Font. (Overrides Object.GetHashCode().)
Public method GetHeight() Returns the line spacing, in pixels, of this font.
Public method GetHeight(Graphics) Returns the line spacing, in the current unit of a specified Graphics, of this font.
Public method GetHeight(Single) Returns the height, in pixels, of this Font when drawn to a device with the specified vertical resolution.
Public method GetLifetimeService Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method InitializeLifetimeService Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected method MemberwiseClone() Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method MemberwiseClone(Boolean) Creates a shallow copy of the current MarshalByRefObject object. (Inherited from MarshalByRefObject.)
Public method ToHfont Returns a handle to this Font.
Public method ToLogFont(Object) Creates a GDI logical font (LOGFONT) structure from this Font.
Public method ToLogFont(Object, Graphics) Creates a GDI logical font (LOGFONT) structure from this Font.
Public method ToString Returns a human-readable string representation of this Font. (Overrides Object.ToString().)
Top

  NameDescription
Explicit interface implemetation Private method ISerializable.GetObjectData Populates a SerializationInfo with the data needed to serialize the target object.
Top
Show: