Font Methods
Assembly: System.Drawing (in System.Drawing.dll)
| Name | Description | |
|---|---|---|
![]() | Clone() | Creates an exact copy of this Font. |
![]() | CreateObjRef(Type^) | Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.(Inherited from MarshalByRefObject.) |
![]() | Dispose() | Releases all resources used by this Font. |
![]() | Equals(Object^) | 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^).) |
![]() | Finalize() | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Overrides Object::Finalize().) |
![]() ![]() | FromHdc(IntPtr) | Creates a Font from the specified Windows handle to a device context. |
![]() ![]() | FromHfont(IntPtr) | Creates a Font from the specified Windows handle. |
![]() ![]() | FromLogFont(Object^) | Creates a Font from the specified GDI logical font (LOGFONT) structure. |
![]() ![]() | FromLogFont(Object^, IntPtr) | Creates a Font from the specified GDI logical font (LOGFONT) structure. |
![]() | GetHashCode() | Gets the hash code for this Font.(Overrides Object::GetHashCode().) |
![]() | GetHeight() | Returns the line spacing, in pixels, of this font. |
![]() | GetHeight(Graphics^) | Returns the line spacing, in the current unit of a specified Graphics, of this font. |
![]() | GetHeight(Single) | Returns the height, in pixels, of this Font when drawn to a device with the specified vertical resolution. |
![]() | GetLifetimeService() | Retrieves the current lifetime service object that controls the lifetime policy for this instance.(Inherited from MarshalByRefObject.) |
![]() | GetType() | |
![]() | InitializeLifetimeService() | Obtains a lifetime service object to control the lifetime policy for this instance.(Inherited from MarshalByRefObject.) |
![]() | ToHfont() | Returns a handle to this Font. |
![]() | ToLogFont(Object^) | Creates a GDI logical font (LOGFONT) structure from this Font. |
![]() | ToLogFont(Object^, Graphics^) | Creates a GDI logical font (LOGFONT) structure from this Font. |
![]() | ToString() | Returns a human-readable string representation of this Font.(Overrides Object::ToString().) |
| Name | Description | |
|---|---|---|
![]() ![]() | ISerializable::GetObjectData(SerializationInfo^, StreamingContext) | Populates a SerializationInfo with the data needed to serialize the target object. |




