FontSize Property

AccessText.FontSize Property


Gets or sets the font size to use with the AccessText element.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

public double FontSize { get; set; }

Property Value

Type: System.Double

The font size to use. The default is the font size that is determined by the MessageFontSize metric.

<object FontSize="double"/>
- or –
<object FontSize ="qualifiedDouble"/>



A string representation of a Double value. This value is interpreted as a device-independent unit (1/96th inch) measurement. Strings need not explicitly include decimal points. For example, you can specify a value of 1.


A double value that is followed by one of these unit declaration strings: px, in, cm, pt.

px (default) is device-independent units (1/96th inch per unit)

in is inches; 1in==96px

cm is centimeters; 1cm==(96/2.54) px

pt is points; 1pt==(96/72) px

Note   In many cases, you can set a double to Auto; however, you cannot set this property to Auto.

The following example shows how to set properties to change the appearance of the text in an AccessText control.

.NET Framework
Available since 3.0
Return to top
© 2015 Microsoft