Sdílet prostřednictvím


TextDecorations.Strikethrough Vlastnost

Definice

Určuje přeškrtnutí TextDecoration.

public:
 static property System::Windows::TextDecorationCollection ^ Strikethrough { System::Windows::TextDecorationCollection ^ get(); };
public static System.Windows.TextDecorationCollection Strikethrough { get; }
member this.Strikethrough : System.Windows.TextDecorationCollection
Public Shared ReadOnly Property Strikethrough As TextDecorationCollection

Hodnota vlastnosti

TextDecorationCollection

Hodnota, která představuje přeškrtnutí TextDecoration.

Příklady

V následujícím příkladu je přeškrtnutá textová dekorace vytvořena pomocí plného barevného štětce pera. Vlastnost Location je nastavena na hodnotu 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>

Poznámky

Následující příklad ukazuje umístění přeškrtnuté text dekorace vzhledem k textu.

Diagram umístění pro dekoraci textu
Příklad přeškrtnutého textového dekorování

Platí pro