FontStyle

FontStyle structure

Defines how the font should be styled with: a normal, italic, or oblique face from its font-family.

public struct FontStyle

Properties

Name Description
IsInitial { get; } Indicates whether this font-style has an initial value (Normal)
Value { get; } Returns a value of this font style as a string

Methods

Name Description
Equals(FontStyle) Determines whether this font-style instance is equal to specified
override Equals(object) Determines whether this font-style instance is equal to specified uncasted
override GetHashCode() Returns a hash-code for this instance
static TryParse(string, out FontStyle) Tries to recognize a specified keyword as a proper keyword value of the ‘font-style’ and return it on success or NULL on failure.
operator == Checks whether two “FontStyle” values are equal
operator != Checks whether two “FontStyle” values are not equal

Fields

Name Description
static readonly Italic Selects a font that is classified as italic. If no italic version of the face is available, one classified as oblique is used instead. If neither is available, the style is artificially simulated.
static readonly Normal Selects a font that is classified as normal within a font-family. Initial value.
static readonly Oblique Selects a font that is classified as oblique. If no oblique version of the face is available, one classified as italic is used instead. If neither is available, the style is artificially simulated.

See Also