Share via


TextDecorations.Strikethrough 속성

정의

취소선 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

속성 값

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>

설명

다음 예제에서는 텍스트를 기준으로 취소선 텍스트 장식의 위치를 보여 줍니다.

텍스트 장식 위치의 다이어그램
취소선 텍스트 장식의 예

적용 대상