FontDescriptor Class

 

FontDescriptor class holds the FontStyleSetInfo for a class and an instance of the Font described by that info (if it's already been created). The FontDescriptor is what gets cached for later use.

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

System::Object
  Microsoft.VisualStudio.Modeling.Diagrams::FontDescriptor

public ref class FontDescriptor 

NameDescription
System_CAPS_pubmethodFontDescriptor(FontStyleSetInfo^)

Constructor that creates a descriptor based on a specified FontStyleSetInfo.

NameDescription
System_CAPS_pubpropertyFont

Gets a cloned instance of the Font defined by this descriptor. If the font has not been previously created, it creates it first.

System_CAPS_pubpropertyFontHeight

Gets the line spacing of this font (i.e., the height of a line of text) in world units. Line spacing is the ascent + the descent + some recommended extra. The ascent is the height of the character above the baseline, and the descent is the height of the character below the baseline. The extra is below the descent.

System_CAPS_pubpropertyFontSize

Gets the em height of the Font object measured in the units of the Font object. This is the value used to create the font. Use FontHeight instead if you want to get the height of a line of text using this font (i.e., the line spacing).

System_CAPS_pubpropertyFontStyleSetInfo

Gets the font information for this descriptor.

NameDescription
System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

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

Return to top
Show: