TextDecoration.Location Eigenschap

Definitie

Hiermee haalt u de verticale locatie op waarop de tekstdecoratie wordt getekend of stelt u deze in.

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

Waarde van eigenschap

De verticale locatie waar de tekstdecoratie wordt getekend.

Voorbeelden

In het volgende codevoorbeeld wordt een doorhalende tekstdecoratie gemaakt met een effen kleurborstel voor de pen. De eigenschap Location is ingesteld op Strikethrough.

// Use the default font values for the strikethrough text decoration.
private void SetDefaultStrikethrough()
{
    // Set the underline decoration directly to the text block.
    TextBlock1.TextDecorations = TextDecorations.Strikethrough;
}
' Use the default font values for the strikethrough text decoration.
Private Sub SetDefaultStrikethrough()
    ' Set the underline decoration directly to the text block.
    TextBlock1.TextDecorations = TextDecorations.Strikethrough
End Sub
<!-- Use the default font values for the strikethrough text decoration. -->
<TextBlock
  TextDecorations="Strikethrough"
  FontSize="36" >
  The quick red fox
</TextBlock>

Opmerkingen

In het volgende voorbeeld ziet u de locaties van de tekstdecoraties ten opzichte van de tekst.

Diagram van tekstversieringslocaties Diagram van Voorbeeld van tekstversieringstypen

Met PenOffset de eigenschap kunt u de tekstversiering van de opgegeven Location.

Informatie over afhankelijkheidseigenschappen

Item Waarde
Id-veld LocationProperty
Eigenschappen van metagegevens ingesteld op true Geen

Van toepassing op