TextDecoration.Location 속성

정의

텍스트 장식이 그려지는 세로 위치를 가져오거나 설정합니다.

public:
 property System::Windows::TextDecorationLocation Location { System::Windows::TextDecorationLocation get(); void set(System::Windows::TextDecorationLocation value); };
public System.Windows.TextDecorationLocation Location { get; set; }
member this.Location : System.Windows.TextDecorationLocation with get, set
Public Property Location As TextDecorationLocation

속성 값

TextDecorationLocation

텍스트 장식이 그려지는 세로 위치입니다.

예제

다음 코드 예제에서는 취소선 텍스트 장식 펜에 대 한 단색 브러시를 사용 하 여 만들어집니다. 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>

설명

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

텍스트 장식 위치의 다이어그램
텍스트 장식 형식의 예제

합니다 PenOffset 속성을 사용 하면 지정 된 텍스트 장식 오프셋 Location합니다.

종속성 속성 정보

식별자 필드 LocationProperty
메타 데이터 속성 설정 true 없음

적용 대상