Defines a structure that represents the style of a font face as normal, italic, or oblique.
Assembly: PresentationCore (in PresentationCore.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation
<[%$TOPIC/ms602615_en-us_VS_110_1_0_0_0_0%](GetType([%$TOPIC/ms602615_en-us_VS_110_1_0_0_0_1%]))> _
<[%$TOPIC/ms602615_en-us_VS_110_1_0_0_0_2%]([%$TOPIC/ms602615_en-us_VS_110_1_0_0_0_3%].None)> _
Public Structure FontStyle _
Implements [%$TOPIC/ms602615_en-us_VS_110_1_0_0_0_4%]
[[%$TOPIC/ms602615_en-us_VS_110_1_0_1_0_0%](typeof([%$TOPIC/ms602615_en-us_VS_110_1_0_1_0_1%]))]
[[%$TOPIC/ms602615_en-us_VS_110_1_0_1_0_2%]([%$TOPIC/ms602615_en-us_VS_110_1_0_1_0_3%].None)]
public struct FontStyle : [%$TOPIC/ms602615_en-us_VS_110_1_0_1_0_4%]
[[%$TOPIC/ms602615_en-us_VS_110_1_0_2_0_0%](typeof([%$TOPIC/ms602615_en-us_VS_110_1_0_2_0_1%]))]
[[%$TOPIC/ms602615_en-us_VS_110_1_0_2_0_2%]([%$TOPIC/ms602615_en-us_VS_110_1_0_2_0_3%]::None)]
public value class FontStyle : [%$TOPIC/ms602615_en-us_VS_110_1_0_2_0_4%]
[<[%$TOPIC/ms602615_en-us_VS_110_1_0_3_0_0%]>]
[<[%$TOPIC/ms602615_en-us_VS_110_1_0_3_0_1%](typeof([%$TOPIC/ms602615_en-us_VS_110_1_0_3_0_2%]))>]
[<[%$TOPIC/ms602615_en-us_VS_110_1_0_3_0_3%]([%$TOPIC/ms602615_en-us_VS_110_1_0_3_0_4%].None)>]
type FontStyle =
struct
interface [%$TOPIC/ms602615_en-us_VS_110_1_0_3_0_5%]
end
<object fontStyleProperty="fontStylesValue"/>
XAML Values
The FontStyle type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | Equals(FontStyle) | Compares a FontStyle with the current FontStyle instance for equality. |
![]() | Equals(Object) | Compares an Object with the current FontStyle instance for equality. (Overrides ValueTypeEquals(Object).) |
![]() | GetHashCode | Retrieves the hash code for this object. (Overrides ValueTypeGetHashCode.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | ToString | Creates a String that represents the current FontStyle object and is based on the CurrentCulture property information. (Overrides ValueTypeToString.) |
| Name | Description | |
|---|---|---|
![]() | Equality | Compares two instances of FontStyle for equality. |
![]() | Inequality | Evaluates two instances of FontStyle to determine inequality. |
| Name | Description | |
|---|---|---|
![]() | IFormattableToString | For a description of this member, see IFormattableToString. |
Three terms categorize the slant of a font: normal, italic, and oblique.
Font style | Description |
|---|---|
Normal | The characters in a normal, or roman, font are upright. |
Italic | The characters in an italic font are truly slanted and appear as they were designed. |
Oblique | The characters in an oblique font are artificially slanted. The slant is achieved by performing a shear transformation on the characters from a normal font. When a true italic font is not available on a computer or printer, an oblique style can generated from the normal font and used to simulate an italic font. |
You can use the enumerated values of the FontStyles class to set the FontStyle structure.
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
.gif)
.gif)
.gif)