Share via


TextField.DefaultAutoSize Property

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.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.dll)

Syntax

'Declaration
Public Property DefaultAutoSize As Boolean
'Usage
Dim instance As TextField 
Dim value As Boolean 

value = instance.DefaultAutoSize

instance.DefaultAutoSize = value
public bool DefaultAutoSize { get; set; }
public:
property bool DefaultAutoSize {
    bool get ();
    void set (bool value);
}
public function get DefaultAutoSize () : boolean 
public function set DefaultAutoSize (value : boolean)

Property Value

Type: System.Boolean

Remarks

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

.NET Framework Security

See Also

Reference

TextField Class

TextField Members

Microsoft.VisualStudio.Modeling.Diagrams Namespace