TextElement.Foreground 속성

정의

이 요소의 콘텐츠에 적용할 Brush 를 가져오거나 설정합니다.

public:
 property Brush ^ Foreground { Brush ^ get(); void set(Brush ^ value); };
Brush Foreground();

void Foreground(Brush value);
public Brush Foreground { get; set; }
var brush = textElement.foreground;
textElement.foreground = brush;
Public Property Foreground As Brush
<textElementForeground="{StaticResource resourceName}"/>
- or -
<textElementForeground="colorString"/>
- or -
<textElement>
  <textElement.Foreground>singleBrush</textElement.Foreground>
</textElement>

속성 값

텍스트 내용에 적용되는 브러시입니다. 기본값은 Color 값이 검은색SolidColorBrush입니다.

설명

포그라운드를 설정해도 LineBreak 또는 InlineUIContainer 개체에 표시되지 않습니다.

적용 대상

추가 정보