Επεξεργασία

Κοινή χρήση μέσω


TextBox.MeasureOverride(Size) Method

Definition

Sizes the text box to its content.

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

Parameters

constraint
Size

A Size structure that specifies the constraints on the size of the text box.

Returns

A Size structure indicating the new size of the text box.

Remarks

Override this method to implement custom sizing behavior.

Applies to