This documentation is archived and is not being maintained.

FontWeight Methods

The FontWeight type exposes the following members.

Public method Static member Compare Compares two instances of FontWeight.
Public method Equals(FontWeight) Determines whether the current FontWeight object is equal to a specified FontWeight object.
Public method Equals(Object) Determines whether the current FontWeight object is equal to a specified object. (Overrides ValueType.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 FromOpenTypeWeight Creates a new instance of FontWeight that corresponds to the OpenType usWeightClass value.
Public method GetHashCode Retrieves the hash code for this object. (Overrides ValueType.GetHashCode().)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToOpenTypeWeight Returns a value that represents the OpenType usWeightClass for the FontWeight object.
Public method ToString Returns a text string that represents the value of the FontWeight object and is based on the CurrentCulture property information. (Overrides ValueType.ToString().)

Explicit interface implemetation Private method IFormattable.ToString For a description of this member, see IFormattable.ToString.