TextBlock.MeasureOverride(Size) Método

Definición

Se invoca para medir de nuevo el objeto TextBlock.Called to re-measure the TextBlock.

protected:
 override System::Windows::Size MeasureOverride(System::Windows::Size constraint);
protected override sealed System.Windows.Size MeasureOverride (System.Windows.Size constraint);
override this.MeasureOverride : System.Windows.Size -> System.Windows.Size
Protected Overrides NotOverridable Function MeasureOverride (constraint As Size) As Size

Parámetros

constraint
Size

Estructura Size que especifica las restricciones de tamaño de TextBlock.A Size structure specifying any constraints on the size of the TextBlock.

Devoluciones

Size

Estructura Size que indica el nuevo tamaño de TextBlock.A Size structure indicating the new size of the TextBlock.

Comentarios

Invalide este método para implementar el comportamiento de ajuste de tamaño personalizado.Override this method to implement custom sizing behavior.

Este método invalida FrameworkElement.MeasureOverride.This method overrides FrameworkElement.MeasureOverride.

Se aplica a