Επεξεργασία

Κοινή χρήση μέσω


AccessText.FontFamily Property

Definition

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

public:
 property System::Windows::Media::FontFamily ^ FontFamily { System::Windows::Media::FontFamily ^ get(); void set(System::Windows::Media::FontFamily ^ value); };
[System.Windows.Localizability(System.Windows.LocalizationCategory.Font, Modifiability=System.Windows.Modifiability.Unmodifiable)]
public System.Windows.Media.FontFamily FontFamily { get; set; }
[<System.Windows.Localizability(System.Windows.LocalizationCategory.Font, Modifiability=System.Windows.Modifiability.Unmodifiable)>]
member this.FontFamily : System.Windows.Media.FontFamily with get, set
Public Property FontFamily As FontFamily

Property Value

The font family to use. The default is the font that is determined by the MessageFontFamily metric.

Attributes

Examples

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>

Remarks

Dependency Property Information

Identifier field FontFamilyProperty
Metadata properties set to true AffectsMeasure, AffectsRender, Inherits

Applies to

See also