TextRange.GetPropertyValue(DependencyProperty) Método

Definición

Devuelve el valor efectivo de una propiedad de formato especificada en la selección actual.

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

Parámetros

formattingProperty
DependencyProperty

Propiedad de formato para obtener el valor de con respecto a la selección actual.

Devoluciones

Objeto que especifica el valor de la propiedad de formato especificada.

Excepciones

Se produce cuando formattingProperty no especifica una propiedad de formato válida o value especifica un valor no válido para formattingProperty.

Se produce cuando formattingProperty es null.

Comentarios

Para devolver un valor de propiedad, todo TextRange debe extenderse a través del texto con un solo valor para .formattingProperty Si se TextRange extiende sobre texto con dos o más valores diferentes para formattingProperty, UnsetValue se devuelve .

Se aplica a

Consulte también