This documentation is archived and is not being maintained.

AccessText.FontSize Property

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

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

public double FontSize { get; set; }
/** @property */
public double get_FontSize ()

/** @property */
public void set_FontSize (double value)

public function get FontSize () : double

public function set FontSize (value : double)

<object FontSize="double"/>
- or –
<object FontSize ="qualifiedDouble"/>
 Double  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.   qualifiedDouble  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. 

Property Value

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

Identifier Field


Metadata properties set to true


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

<TextBox Name="textBox2" Width="50" Height="30"/>
<Label Target="{Binding ElementName=textBox2}">
  <AccessText Background="Red" Foreground="DarkSlateBlue"    
              FontFamily="Arial Narrow" FontSize="16" FontStyle="Italic" 

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0