(0) exportieren Drucken
Alle erweitern

AccessText.FontStyle-Eigenschaft

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

Namespace: System.Windows.Controls
Assembly: PresentationFramework (in presentationframework.dll)
XML-Namespaces:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

public FontStyle FontStyle { get; set; }
/** @property */
public FontStyle get_FontStyle ()

/** @property */
public void set_FontStyle (FontStyle value)

public function get FontStyle () : FontStyle

public function set FontStyle (value : FontStyle)

<object FontStyle="FontStyle" .../>

Eigenschaftenwert

The font style to use, for example, normal, italic, or oblique. The default value is determined by the MessageFontStyle metric.

Identifier Field

FontStyleProperty

Metadata properties set to true

None

For more information and a list of font styles, see FontStyle.

The following example shows how to set properties in order 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" 
              FontWeight="Bold">
    E_dit
  </AccessText>
</Label>

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

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

Microsoft .NET Framework 3.0 wird unter Windows Vista, Microsoft Windows XP SP2 und Windows Server 2003 SP1 unterstützt.

.NET Framework

Unterstützt in: 3.0
Anzeigen:
© 2014 Microsoft