AccessText.FontWeight Propiedad

Definición

Obtiene o establece el espesor de fuente que se va a utilizar con el elemento 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

Valor de propiedad

FontWeight

Espesor de fuente que se va a utilizar. El valor predeterminado viene determinado por la métrica de MessageFontWeight.

Ejemplos

En el ejemplo siguiente se muestra cómo establecer propiedades para cambiar la apariencia del texto en un 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>

Comentarios

Información sobre propiedades de dependencia

Campo identificador FontWeightProperty
Propiedades de metadatos establecidas en true AffectsMeasure, AffectsRender, Inherits

Se aplica a

Consulte también