Enum DimAutoStyle | Terminal.Gui v2 (original) (raw)

Namespace

Terminal.Gui

Assembly

Terminal.Gui.dll

[Flags]
public enum DimAutoStyle

Extension Methods

Fields

Auto = Content | Text

The dimension will be computed using the largest of the view's Text, GetContentSize(), andSubViews corresponding dimension

Content = 1

The dimensions will be computed based on the View's GetContentSize() and/or SubViews.

If ContentSizeTracksViewport is true, GetContentSize() 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 theTextFormatter settings, will be used to determine the dimension.

The corresponding dimensions of GetContentSize() and/or SubViews will be ignored.

If MaximumContentDim is set, the dimension will be the maximum of the formatted text and the dimension provided by MaximumContentDim. Otherwise, the dimension will be that of the formatted text.