TextBlock.GetForeground(DependencyObject) 메서드

정의

지정된 종속성 개체에 대한 Foreground 연결된 속성의 값을 반환합니다.

public:
 static System::Windows::Media::Brush ^ GetForeground(System::Windows::DependencyObject ^ element);
public static System.Windows.Media.Brush GetForeground (System.Windows.DependencyObject element);
static member GetForeground : System.Windows.DependencyObject -> System.Windows.Media.Brush
Public Shared Function GetForeground (element As DependencyObject) As Brush

매개 변수

element
DependencyObject

Foreground 연결된 속성의 값을 검색할 종속성 개체입니다.

반환

Brush

지정된 종속성 개체에 대한 Foreground 연결 속성의 현재 값입니다.

예외

element이(가) null인 경우

적용 대상

추가 정보