FontSettings Class

FontSettings allows certain properties on a FontStyleSetInfo to be marked as overridden or immutable. If certain Font settings are marked as immutable, then they are not allowed to be changed again.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.Modeling.Diagrams.FontSettings

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

Syntax

'Declaration
Public Class FontSettings
public class FontSettings
public ref class FontSettings
type FontSettings =  class end
public class FontSettings

The FontSettings type exposes the following members.

Constructors

  Name Description
Public method FontSettings Default constructor.

Top

Properties

  Name Description
Public property Bold Gets or sets the font's bold style. Only allows the change if the property is not immutable and sets the override flags appropriately.
Public property FontSettingsFlags Gets the overridden properties in the FontStyleSetInfo.
Public property FontStyleSetInfo Gets or sets the FontStyleSetInfo associated with these settings.
Public property ImmutableName Makes the Name setting immutable, unchangeable by others. Once it's make immutable, no one else can change it.
Public property ImmutableSize Makes the Size setting immutable, unchangeable by others. Once it's make immutable, no one else can change it.
Public property ImmutableStyle Makes the Style setting immutable, unchangeable by others. Once it's make immutable, no one else can change it.
Public property Italic Gets or sets the font's italic style. Only allows the change if the property is not immutable and sets the override flags appropriately.
Public property Name Gets or sets the name of the FontFamily object. Only allows the change if the property is not immutable and sets the override flags appropriately.
Public property Regular Gets or sets the font's regular style. Only allows the change if the property is not immutable and the value is true. To set a Font to be non-Regular, one must use any of the Bold, Italic, or Style properties.
Public property Size Gets or sets the size of the font in world units (inches). A point is 1/72nd of an inch. Only allows the change if the property is not immutable and sets the override flags appropriately.
Public property Strikeout Gets or sets the font's strikeout style. Only allows the change if the property is not immutable and sets the override flags appropriately.
Public property Style Gets or sets the font's bold, italic, strikeout, and underline styles. Only allows the change if the property is not immutable and sets the override flags appropriately.
Public property Underline Gets or sets the font's underline style. Only allows the change if the property is not immutable and sets the override flags appropriately.

Top

Methods

  Name Description
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from 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 GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method IsOverridden Tests whether certain PenSettings are overridden.
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