Table of Contents

Property Height

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

Height

Gets or sets the height dimension of the view.

public Dim Height { get; set; }

Property Value

Dim

The Dim object representing the height of the view (the number of rows).

Remarks

The dimension is relative to the SuperView's Content, which is bound by ContentSize .

If set to a relative value (e.g. Fill(int)) the value is indeterminate until the view has been initialized ( IsInitialized is true) and SetRelativeLayout(Size?) has been called.

Changing this property will eventually (when the view is next drawn) cause the LayoutSubview(View, Size) and OnDrawContent(Rectangle) methods to be called.

Changing this property will cause Frame to be updated. If the new value is not of type Dim.DimAbsolute the LayoutStyle will change to Computed.

The default value is Dim.Sized (0).