TextDecorations.Strikethrough Свойство

Определение

Задает зачеркнутое.TextDecoration

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

Значение свойства

Значение, представляющее зачеркнутое.TextDecoration

Примеры

В следующем примере украшение текста зачеркнутого текста создается с помощью сплошной кисти цвета для пера. Для свойства Location задано значение 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>

Комментарии

В следующем примере показано расположение зачеркнутого текста относительно текста.

Схема расположений Пример зачеркнутого оформления текста

Применяется к