TextDecorations.Strikethrough Propiedad

Definición

Especifica una clase TextDecoration tachada.

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

Valor de propiedad

Valor que representa una estructura TextDecoration tachada.

Ejemplos

En el ejemplo siguiente, se crea una decoración de texto tachado mediante un pincel de color sólido para el lápiz. La propiedad Location está establecida en 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>

Comentarios

En el ejemplo siguiente se muestra la ubicación de una decoración de texto tachado en relación con el texto.

Diagrama de ubicaciones de decoración
Ejemplo de decoración de texto tachado

Se aplica a