Aracılığıyla paylaş


TextDecorations.Strikethrough Özellik

Tanım

üstü çizili TextDecorationbelirtir.

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

Özellik Değeri

TextDecorationCollection

Üstü çizili TextDecorationbir değeri temsil eden bir değer.

Örnekler

Aşağıdaki örnekte kalem için düz renk fırçası kullanılarak üstü çizili bir metin dekorasyonu oluşturulmuştur. Location özelliği Strikethrough olarak ayarlanmıştır.

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

Açıklamalar

Aşağıdaki örnekte, metne göre üstü çizili metin düzenlemesinin konumu gösterilmektedir.

Metin dekorasyon konumlarının diyagramı
Üstü çizili metin dekorasyonu örneği

Şunlara uygulanır