이 문서는 기계로 번역한 것입니다. 원본 텍스트를 보려면 포인터를 문서의 문장 위로 올리십시오. 추가 정보
번역
원본
이 항목은 아직 평가되지 않았습니다.- 이 항목 평가

TextBlock.TextDecorations 속성

가져오거나는 TextDecorationCollection 의 텍스트에 적용 하는 효과 포함 한 TextBlock.

네임스페이스:  System.Windows.Controls
어셈블리:  PresentationFramework(PresentationFramework.dll)
XAML의 XMLNS: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation
public TextDecorationCollection TextDecorations { get; set; }
<object>
  <object.TextDecorations>
    <TextDecorationCollection .../>
  </object.TextDecorations>
</object>
<object TextDecorations="TextDecorationCollection" .../>

속성 값

형식: System.Windows.TextDecorationCollection
A TextDecorationCollection 이 요소에 적용할 수 있는 텍스트 장식을 포함 하는 컬렉션입니다. 기본값은 null (텍스트 장식이 적용 되지 않습니다).

식별자 필드

TextDecorationsProperty

메타 데이터 속성을 설정true

AffectsRender

A TextDecoration 개체는 시각적인 장식 인 텍스트에 추가할 수 있습니다. 네 가지 종류의 텍스트 장식이: 밑줄, 기준선, 취소선 및 윗줄. 텍스트 장식 하는 방법에 대 한 자세한 내용은 참조 하십시오. 방법: 텍스트 장식 만들기.

기본적으로이 속성 설정 null 에 및 TextDecorationCollection 연결 된. 텍스트 효과 추가 하기 전에 새로 만들기 TextDecorationCollection 이 속성에 할당 합니다.

다음 예제에서는 설정 하는 방법을 보여 줍니다 있는 TextDecorations 특성.


<TextBlock TextDecorations="Strikethrough">
  This text will render with the strikethrough effect.
</TextBlock>


다음 그림에서는이 예제가 렌더링 되입니다.

스크린 샷: 기본 취소선 효과가 적용된 텍스트

다음 그림 쇼를 어떻게 OverLine, Baseline, 및 Underline 각각 장식이 렌더링 합니다.

스크린 샷: 윗줄 TextDecorator스크린 샷: 텍스트의 기본 기준선 효과스크린 샷: 밑줄 효과가 적용된 텍스트

다음 예제를 설정 하는 방법을 보여 줍니다 있는 TextDecorations 속성이 프로그래밍 방식으로.


TextBlock textBlock = new TextBlock(new Run("This text will render with the strikethrough effect."));
textBlock.TextDecorations = TextDecorations.Strikethrough;


.NET Framework

4.5, 4, 3.5, 3.0에서 지원

.NET Framework Client Profile

4, 3.5 SP1에서 지원

Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008(서버 코어 역할은 지원되지 않음), Windows Server 2008 R2(서버 코어 역할은 SP1 이상에서 지원, Itanium은 지원되지 않음)

.NET Framework에서 모든 플랫폼의 전체 버전을 지원하지는 않습니다. 지원되는 버전의 목록을 보려면 .NET Framework 시스템 요구 사항을 참조하십시오.
이 정보가 도움이 되었습니까?
(1500자 남음)

커뮤니티 추가 항목

추가
© 2013 Microsoft. All rights reserved.