Export (0) Print
Expand All

Font Members

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

The Font type exposes the following members.

  NameDescription
Public method Supported by the .NET Compact Framework Font Overloaded. Initializes a new Font that uses the specified existing Font and FontStyle.
Top

  NameDescription
Public method Supported by the .NET Compact Framework 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 Supported by the .NET Compact Framework Dispose Releases all resources used by this Font.
Public method Supported by the .NET Compact Framework 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 Supported by the .NET Compact Framework 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 Supported by the .NET Compact Framework FromHfont Creates a Font from the specified Windows handle.
Public method Static member Supported by the .NET Compact Framework FromLogFont Overloaded. Creates a Font from the specified GDI logical font (LOGFONT) structure.
Public method Supported by the .NET Compact Framework GetHashCode Gets the hash code for this Font. (Overrides Object.GetHashCode().)
Public method GetHeight Overloaded. Returns the line spacing of this font.
Public method Supported by the .NET Compact Framework GetHtx Infrastructure. Gets a pointer for this Font.
Public method GetLifetimeService Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public method Supported by the .NET Compact Framework 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 Supported by the .NET Compact Framework MemberwiseClone Overloaded.
Public method Supported by the .NET Compact Framework ToHfont Returns a handle to this Font.
Public method ToLogFont Overloaded. Creates a GDI logical font (LOGFONT) structure from this Font.
Public method Supported by the .NET Compact Framework ToString Returns a string representation of this Font. (Overrides Object.ToString().)

In .NET Compact Framework 3.5, this member is inherited from Object.ToString().
Top

  NameDescription
Public property Bold Gets a value that indicates whether this Font is bold.
Public property FontFamily Gets the FontFamily associated with this Font.
Public property GdiCharSet Gets a byte value that specifies the GDI character set that this Font uses.
Public property GdiVerticalFont Gets a Boolean value that indicates whether this Font is derived from a GDI vertical font.
Public property Height Gets the line spacing of this font.
Public property IsSystemFont Gets a value indicating whether the font is a member of SystemFonts.
Public property Italic Gets a value that indicates whether this Font is italic.
Public property Supported by the .NET Compact Framework Name Gets the face name of this Font.
Public property OriginalFontName Infrastructure. Gets the name of the font originally specified.
Public property Supported by the .NET Compact Framework Size Gets the em-size of this Font measured in the units specified by the Unit property.
Public property SizeInPoints Gets the em-size, in points, of this Font.
Public property Strikeout Gets a value that indicates whether this Font specifies a horizontal line through the font.
Public property Supported by the .NET Compact Framework Style Gets style information for this Font.
Public property SystemFontName Gets the name of the system font if the IsSystemFont property returns true.
Public property Underline Gets a value that indicates whether this Font is underlined.
Public property Unit Gets the unit of measure for this Font.
Top

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

Community Additions

ADD
Show:
© 2014 Microsoft