AccessText.Foreground 속성

정의

요소의 Brush 텍스트 내용을 그리는 값을 가져오거나 설정합니다.

public:
 property System::Windows::Media::Brush ^ Foreground { System::Windows::Media::Brush ^ get(); void set(System::Windows::Media::Brush ^ value); };
public System.Windows.Media.Brush Foreground { get; set; }
member this.Foreground : System.Windows.Media.Brush with get, set
Public Property Foreground As Brush

속성 값

Brush 텍스트를 그립니다. 기본값은 Black입니다.

예제

다음 예제에서는 컨트롤에서 텍스트의 모양을 변경 하는 속성을 설정 하는 방법을 보여 있습니다 AccessText .

<TextBox Name="textBox2" Width="50" Height="30"/>
<Label Target="{Binding ElementName=textBox2}">
  <AccessText Background="Red" Foreground="DarkSlateBlue"    
              FontFamily="Arial Narrow" FontSize="16" FontStyle="Italic" 
              FontWeight="Bold">
    E_dit
  </AccessText>
</Label>

설명

종속성 속성 정보

항목 가치
식별자 필드 ForegroundProperty
메타데이터 속성이 다음으로 설정됩니다. true AffectsRender, , SubPropertiesDoNotAffectRenderInherits

적용 대상

추가 정보