This documentation is archived and is not being maintained.

Font Members

Font overview

Public Constructors

public constructorFont Constructor

Supported by the .NET Compact Framework.

Overloaded. Initializes a new Font object that uses the specified existing Font object and FontStyle enumeration.

Public Properties

public propertyBold Gets a value that indicates whether this Font object is bold.
public propertyFontFamily Gets the FontFamily object associated with this Font object.
public propertyGdiCharSet Gets a byte value that specifies the GDI character set that this Font object uses.
public propertyGdiVerticalFont Gets a Boolean value that indicates whether this Font object is derived from a GDI vertical font.
public propertyHeight Gets the line spacing of this font.
public propertyItalic Gets a value that indicates whether this Font object is italic.
public propertyName

Supported by the .NET Compact Framework.

Gets the face name of this Font object.
public propertySize

Supported by the .NET Compact Framework.

Gets the em-size of this Font object measured in the unit of this Font object.
public propertySizeInPoints Gets the em-size, in points, of this Font object.
public propertyStrikeout Gets a value that indicates whether this Font object specifies a horizontal line through the font.
public propertyStyle

Supported by the .NET Compact Framework.

Gets style information for this Font object.
public propertyUnderline Gets a value that indicates whether this Font object is underlined.
public propertyUnit Gets the unit of measure for this Font object.

Public Methods

public methodClone Creates an exact copy of this Font object.
public methodCreateObjRef (inherited from MarshalByRefObject) Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
public methodDispose

Supported by the .NET Compact Framework.

Releases all resources used by this Font object.
public methodEquals

Supported by the .NET Compact Framework.

Overridden. Indicates whether the specified object is a Font object and is identical to this Font object.
public methodstatic (Shared in Visual Basic)FromHdc Creates a Font object from the specified Windows handle to a device context.
public methodstatic (Shared in Visual Basic)FromHfont Creates a Font object from the specified Windows handle.
public methodstatic (Shared in Visual Basic)FromLogFont Overloaded. Creates a Font object from the specified GDI LOGFONT structure.
public methodGetHashCode

Supported by the .NET Compact Framework.

Overridden. Gets the hash code for this Font object.
public methodGetHeight Overloaded. Returns the line spacing of this font.
public methodGetLifetimeService (inherited from MarshalByRefObject) Retrieves the current lifetime service object that controls the lifetime policy for this instance.
public methodGetType (inherited from Object)

Supported by the .NET Compact Framework.

Gets the Type of the current instance.
public methodInitializeLifetimeService (inherited from MarshalByRefObject) Obtains a lifetime service object to control the lifetime policy for this instance.
public methodToHfont Returns a handle to this Font object.
public methodToLogFont Overloaded. Creates a GDI LOGFONT structure from this Font object.
public methodToString

Supported by the .NET Compact Framework.

Overridden. Returns a human-readable string representation of this Font object.

Protected Methods

protected methodFinalize

Supported by the .NET Compact Framework.

Overridden. See Object.Finalize.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object)

Supported by the .NET Compact Framework.

Creates a shallow copy of the current Object.

See Also

Font Class | System.Drawing Namespace

Show: