Table of Contents

Enum Dim.DimAutoStyle

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

Specifies how Dim.DimAuto will compute the dimension.

[Flags]
public enum Dim.DimAutoStyle

Fields

Auto = Content | Text

The dimension will be computed using both the view's Text and Subviews (whichever is larger).

Content = 1
The dimensions will be computed based on the View's non-Text content.

If ContentSize is explicitly set (is not null) then ContentSize will be used to determine the dimension.

Otherwise, the Subview in Subviews with the largest corresponding position plus dimension will determine the dimension.

The corresponding dimension of the view's Text will be ignored.

Text = 2

The corresponding dimension of the view's Text, formatted using the TextFormatter settings, will be used to determine the dimension.

The corresponding dimensions of the Subviews will be ignored.