Editar

Partilhar via


TextBlock.MeasureOverride(Size) Method

Definition

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

Parameters

constraint
Size

A Size structure specifying any constraints on the size of the TextBlock.

Returns

A Size structure indicating the new size of the TextBlock.

Remarks

Override this method to implement custom sizing behavior.

This method overrides FrameworkElement.MeasureOverride.

Applies to