Table of Contents

Constructor DimPercent

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

DimPercent(int, DimPercentMode)

Represents a dimension that is a percentage of the width or height of the SuperView.

public DimPercent(int Percentage, DimPercentMode Mode = DimPercentMode.ContentSize)

Parameters

Percentage int

The percentage.

Mode DimPercentMode

If Position the dimension is computed using the View's position (X or Y); otherwise, the dimension is computed using the View's GetContentSize().

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.

DimPercent(DimPercent)

protected DimPercent(DimPercent original)

Parameters

original DimPercent