다음을 통해 공유


FontStyleSetInfo Class

Contains the StyleSet information about a font. These are all of the settings that be placed on a Font like Name, Size, FontStyle, etc. The information is used to create a unique hash code for this class which is used in the HybridDictionary for lookup of a particular cached resource.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Modeling.Diagrams.FontStyleSetInfo

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)

Syntax

'Declaration
Public Class FontStyleSetInfo _
    Implements ICloneable
public class FontStyleSetInfo : ICloneable
public ref class FontStyleSetInfo : ICloneable
type FontStyleSetInfo =  
    class 
        interface ICloneable 
    end
public class FontStyleSetInfo implements ICloneable

The FontStyleSetInfo type exposes the following members.

Constructors

  Name Description
Public method FontStyleSetInfo

Top

Properties

  Name Description
Public property Name Gets or sets the name of the FontFamily object.
Public property Size Gets or sets the size of the font in world units (inches). A point is 1/72nd of an inch.
Public property Style Gets or sets the font's bold, italic, strikeout, and underline styles.
Public property Units Gets the unit of measure for this font (always GraphicsUnit.World)

Top

Methods

  Name Description
Public method Clone Method to create a new instance of this object with the same instance data.
Public method Equals(Object) Determines whether the specified object is equal to this one. Only equal if all of their properties are equal. (Overrides Object.Equals(Object).)
Public methodStatic member Equals(Object, Object) Determines whether the two specified objects are equal to each other
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 GetHashCode Serves as a hash function for a BrushStyleSetInfo, suitable for use in hashing algorithms and data structures like a hash table. (Overrides Object.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 ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.Modeling.Diagrams Namespace