Table of Contents

Constructor DimFill

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

DimFill(Dim, Dim?)

Represents a dimension that fills the dimension, leaving the specified margin.

public DimFill(Dim Margin, Dim? MinimumContentDim = null)

Parameters

Margin Dim

The margin to not fill.

MinimumContentDim Dim

The minimum dimension the filled view will be constrained to. When the SuperView uses DimAuto, this minimum will contribute to the auto-sizing calculation, ensuring the SuperView is at least large enough to accommodate the minimum.

Remarks

This is a low-level API that is typically used internally by the layout system. Use the various static methods on the Dim class to create Dim objects instead.

When the SuperView uses DimAuto, a DimFill SubView does not contribute to the auto-sizing calculation by default. Because DimFill derives its size from the SuperView's ContentSize, and DimAuto computes the ContentSize from its SubViews, a circular dependency arises: the DimFill SubView will be sized to 0 unless MinimumContentDim is specified.

Set MinimumContentDim to ensure the SubView contributes a minimum size to the auto-sizing calculation. See the Dim.Auto Deep Dive for details.

DimFill(DimFill)

protected DimFill(DimFill original)

Parameters

original DimFill