Font |
public sealed class FontX : IImmutable
The FontX type exposes the following members.
Name | Description | |
---|---|---|
FontFamilyName | Gets the name of the font family. | |
InvariantDescriptionString | Gets an description string that fully describes this instance. This string can be used e.g. for font dictionaries. | |
InvariantDescriptionStringWithoutSizeInformation | Gets the invariant description string, but without size information. This is useful in some caching situations, for instance caching character geometries. | |
Size | Gets the size of the font in Altaxo units, which are points (1/72 inch). | |
Style | Gets the font style. |
Name | Description | |
---|---|---|
Equals |
Determines whether the specified Object is equal to this instance.
(Overrides ObjectEquals(Object)) | |
Finalize |
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) | |
GetFamilyNameSizeStyleFromInvariantDescriptionString | Extracts font family name, size and style from the invariant description string. | |
GetHashCode | Returns a hash code for this instance. (Overrides ObjectGetHashCode) | |
GetInvariantDescriptionString | Gets an invariant description string, providing the font family, the size and the style of a font. | |
GetInvariantDescriptionStringWithoutSizeInformation | Gets an invariant description string, providing the font family, the size and the style of a font. | |
GetType | Gets the Type of the current instance. (Inherited from Object) | |
InternalCreateFromInvariantDescriptionString | Internal creates a FontX instance from an invariant description string. This function is intended to use only by FontManagers! | |
InternalCreateFromNameSizeStyle | ||
ToString | Returns a String that represents this instance. (Overrides ObjectToString) | |
WithFamily | Creates a font like the existing font, but with a new font family name. | |
WithSize | Gets a font like the existing font, but with a new size. | |
WithStyle | Gets a font like the existing font, but with a new font style. |
Name | Description | |
---|---|---|
FontConstructed | Occurs when a FontX instance is created. Argument is the invariant description string of the created FontX instance. | |
FontDestructed | Occurs when a FontX instance was disposed. Argument is the invariant description string of the destructed FontX instance. |
Name | Description | |
---|---|---|
Equality(FontX, FontX) | Implements the operator ==. | |
Inequality(FontX, FontX) | Implements the operator !=. |