Share via


TextRange.GetPropertyValue(DependencyProperty) Metodo

Definizione

Restituisce il valore effettivo di una formattazione specificata nella selezione corrente.

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

Parametri

formattingProperty
DependencyProperty

Proprietà di formattazione della quale ottenere il valore rispetto alla selezione corrente.

Restituisce

Oggetto che specifica il valore della proprietà di formattazione specificata.

Eccezioni

Si verifica quando formattingProperty non specifica una proprietà di formattazione valida o value specifica un valore non valido per formattingProperty.

Si verifica quando l'oggetto formattingProperty è null:

Commenti

Per restituire un valore della proprietà, l'intero TextRange deve estendersi sul testo con un solo valore per .formattingProperty Se il TextRange testo si estende su due o più valori diversi per , formattingPropertyUnsetValue viene restituito.

Si applica a

Vedi anche