TextRange.GetPropertyValue(DependencyProperty) 메서드

정의

현재 선택 영역에서 지정된 서식 속성의 유효 값을 반환합니다.

public:
 System::Object ^ GetPropertyValue(System::Windows::DependencyProperty ^ formattingProperty);
public object GetPropertyValue(System.Windows.DependencyProperty formattingProperty);
member this.GetPropertyValue : System.Windows.DependencyProperty -> obj
Public Function GetPropertyValue (formattingProperty As DependencyProperty) As Object

매개 변수

formattingProperty
DependencyProperty

현재 선택 영역과 관련하여 값을 가져오는 서식 속성입니다.

반품

지정한 서식 속성의 값을 지정하는 개체입니다.

예외

formattingProperty 유효한 서식 속성을 value 지정하지 않거나 잘못된 값을 formattingProperty지정하면 발생합니다.

가 있는 경우에 formattingPropertynull발생합니다.

설명

속성 값을 반환하려면 전체 TextRange 값이 텍스트 위로 formattingProperty확장되어야 합니다. TextRange 둘 이상의 값 formattingPropertyUnsetValue 이 있는 텍스트를 확장하면 반환됩니다.

적용 대상

추가 정보