Table of Contents

Method GetAutoHeight

Namespace
Terminal.Gui.ViewBase
Assembly
Terminal.Gui.dll

GetAutoHeight()

Gets the natural (auto-size) height of the view as calculated by Auto(DimAutoStyle, Dim?, Dim?).

public int GetAutoHeight()

Returns

int

Remarks

The returned height is the full auto-calculated height for the view, including adornment thickness. Unlike GetHeightRequiredForSubViews(), this value is not content-only. The calculation may also respect minimum and maximum content constraints applied by the auto dimension logic before adornments are added.