[This is preliminary documentation and is subject to change.]
Represents a font - or a typeface, typeface style and typeface size
combination.
| C# |
public struct PFont
| All Members | Constructors | Methods | Properties | Fields | |
| Icon | Member | Description |
|---|---|---|
| PFont(PFont, PFontStyle) | Creates a new PFont based on an existing PFont, with a FontStyle
applied to it. | |
| PFont(String) |
Creates a new PFont from a string representation, such as that
produced by the ToString method.
| |
| DefaultFontHeight |
Gets the line spacing in pixels of the system default font.
| |
| Empty |
Represents an empty PFont which has not been set
| |
| Equals(Object) |
Indicates whether this instance and a specified object are equal.
(Inherited from ValueType.) | |
| Finalize()()()() |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
| FontFamilyName |
Gets the Font family (typeface) name for this PFont, or the empty string if
this PFont is empty
| |
| FontSize |
Gets the size of this PFont. For the desktop UI, this is in Points
| |
| FontStyleExpression | Gets an expression representing the style characteristics of this
PFont. For the desltop UI, this is one of the FontStyle enum names
| |
| FontText | Gets a string describing the PFont. For the .Net desktop UI, this
comprises the family name, size, units and style. | |
| GetHashCode()()()() |
Returns the hash code for this instance.
(Inherited from ValueType.) | |
| GetHeight()()()() |
Gets the line spacing in pixels of this PFont, or 0F if the font is empty.
| |
| GetType()()()() |
Gets the Type of the current instance.
(Inherited from Object.) | |
| Height |
Gets the line spacing of this PFont, or 0 if the font is empty.
| |
| ImplicitWideningImplicitImplicitImplicit(PFont to Font) |
Implicitly converts a Persistate.UI.PFont to a System.Drawing.Font.
| |
| ImplicitWideningImplicitImplicitImplicit(Font to PFont) |
Implicitly converts a System.Drawing.Font to a Persistate.UI.PFont.
| |
| IsEmpty |
Gets a value indicating whether this PFont has not been set to represent a font.
| |
| MeasuredHeight()()()() |
Measures the height of text in this PFont.
| |
| MeasuredWidth(String) |
Measures the width of the given text in this PFont.
| |
| MemberwiseClone()()()() |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| TextLineHeight()()()() | Calculates the height required to show one line of text in this
PFont. | |
| ToString()()()() | Creates a stored persistent font data string from this PFont.
(Overrides ValueType.ToString()()()().) |
This version is for the .Net platform. This will be implemented
separately (along with the entire Persistate.UI namespace) for different
platforms as necessary.