Table of Contents

Property AutoSize

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

AutoSize

Gets or sets a flag that determines whether the View will be automatically resized to fit the Text. The default is false. Set to true to turn on AutoSize. If AutoSize is true the Width and Height will always be used if the text size is lower. If the text size is higher the bounds will be resized to fit it. In addition, if ForceValidatePosDim is true the new values of Width and Height must be of the same types of the existing one to avoid breaking the Dim settings.

public virtual bool AutoSize { get; set; }

Property Value

bool