AccessText.FontWeight Właściwość

Definicja

Pobiera lub ustawia wagę czcionki do użycia z elementem AccessText .

public:
 property System::Windows::FontWeight FontWeight { System::Windows::FontWeight get(); void set(System::Windows::FontWeight value); };
public System.Windows.FontWeight FontWeight { get; set; }
member this.FontWeight : System.Windows.FontWeight with get, set
Public Property FontWeight As FontWeight

Wartość właściwości

FontWeight

Waga czcionki do użycia. Wartość domyślna jest określana przez metryki MessageFontWeight .

Przykłady

W poniższym przykładzie pokazano, jak ustawić właściwości w celu zmiany wyglądu tekstu w kontrolce AccessText .

<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>

Uwagi

Informacje dotyczące właściwości zależności

Pole identyfikatora FontWeightProperty
Właściwości metadanych ustawione na true AffectsMeasure, AffectsRender, Inherits

Dotyczy

Zobacz też