AccessText.FontStyle Egenskap

Definition

Hämtar eller anger teckensnittsformatet som ska användas med -elementet AccessText .

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

Egenskapsvärde

Teckensnittsformatet som ska användas. till exempel normal, kursiv eller sned. Standardvärdet bestäms av måttet MessageFontStyle .

Exempel

I följande exempel visas hur du anger egenskaper för att ändra utseendet på texten i en AccessText kontroll.

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

Kommentarer

Mer information och en lista över teckensnittsformat finns i FontStyle.

Information om beroendeegenskap

Objekt Value
Identifierarfält FontStyleProperty
Metadataegenskaper inställda på true AffectsMeasure, , AffectsRenderInherits

Gäller för

Se även