共用方式為


TextField.DefaultAutoSize Property

Definition

If true, the text field's minimum reported size will grow to accomodate the length of the diplay text. Autosizable text fields will still respect the minimum size specified in the AnchoringBehavior.

public:
 property bool DefaultAutoSize { bool get(); void set(bool value); };
public bool DefaultAutoSize { get; set; }
member this.DefaultAutoSize : bool with get, set
Public Property DefaultAutoSize As Boolean

Property Value

Remarks

This option is not supported for multi-line text fields.

Applies to