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
'Déclaration
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 | |
---|---|---|
FontSettings | Default constructor. |
Top
Properties
Name | Description | |
---|---|---|
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. | |
FontSettingsFlags | Gets the overridden properties in the FontStyleSetInfo. | |
FontStyleSetInfo | Gets or sets the FontStyleSetInfo associated with these settings. | |
ImmutableName | Makes the Name setting immutable, unchangeable by others. Once it's make immutable, no one else can change it. | |
ImmutableSize | Makes the Size setting immutable, unchangeable by others. Once it's make immutable, no one else can change it. | |
ImmutableStyle | Makes the Style setting immutable, unchangeable by others. Once it's make immutable, no one else can change it. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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. | |
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 | |
---|---|---|
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsOverridden | Tests whether certain PenSettings are overridden. | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
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.