Click or drag to resize

FontX Class

Encapsulates a font in an immutable instance. Please use the GdiFontManager to create an instance of this class (or any other font manager).
Inheritance Hierarchy
SystemObject
  Altaxo.DrawingFontX

Namespace: Altaxo.Drawing
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public sealed class FontX : IImmutable

The FontX type exposes the following members.

Properties
 NameDescription
Public propertyFontFamilyNameGets the name of the font family.
Public propertyInvariantDescriptionString Gets an description string that fully describes this instance. This string can be used e.g. for font dictionaries.
Public propertyInvariantDescriptionStringWithoutSizeInformation Gets the invariant description string, but without size information. This is useful in some caching situations, for instance caching character geometries.
Public propertySize Gets the size of the font in Altaxo units, which are points (1/72 inch).
Public propertyStyleGets the font style.
Top
Methods
 NameDescription
Public methodEquals Determines whether the specified Object is equal to this instance.
(Overrides ObjectEquals(Object))
Protected methodFinalize Since this instance don't hold any unmanaged font objects by itself, only the FontDestructed event is fired to announce the disposal of this instance. FontManager, which have registered to this event, can then free associated resources.
(Overrides ObjectFinalize)
Public methodStatic memberGetFamilyNameSizeStyleFromInvariantDescriptionString Extracts font family name, size and style from the invariant description string.
Public methodGetHashCodeReturns a hash code for this instance.
(Overrides ObjectGetHashCode)
Public methodStatic memberGetInvariantDescriptionString Gets an invariant description string, providing the font family, the size and the style of a font.
Public methodStatic memberGetInvariantDescriptionStringWithoutSizeInformation Gets an invariant description string, providing the font family, the size and the style of a font.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodStatic memberInternalCreateFromInvariantDescriptionString Internal creates a FontX instance from an invariant description string. This function is intended to use only by FontManagers!
Public methodStatic memberInternalCreateFromNameSizeStyle 
Public methodToStringReturns a String that represents this instance.
(Overrides ObjectToString)
Public methodWithFamily Creates a font like the existing font, but with a new font family name.
Public methodWithSize Gets a font like the existing font, but with a new size.
Public methodWithStyle Gets a font like the existing font, but with a new font style.
Top
Events
 NameDescription
Public eventStatic memberFontConstructedOccurs when a FontX instance is created. Argument is the invariant description string of the created FontX instance.
Public eventStatic memberFontDestructedOccurs when a FontX instance was disposed. Argument is the invariant description string of the destructed FontX instance.
Top
Operators
 NameDescription
Public operatorStatic memberEquality(FontX, FontX) Implements the operator ==.
Public operatorStatic memberInequality(FontX, FontX) Implements the operator !=.
Top
See Also