Table of Contents

Property Width

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

Width

Gets or sets the width dimension of the view.

public Dim Width { get; set; }

Property Value

Dim

The Dim object representing the width of the view (the number of columns).

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).