Struct
LayoutSize
ConsoleMonster.Layout
A size specification: LayoutSize.Auto, LayoutSize.Fixed cells, or a LayoutSize.Fraction of the remaining space with a minimum.
Inheritance
- ValueType
- LayoutSize
Usage
Explore 10 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 7
- Property Columns.Sizes
- Method LayoutSize.Fixed
- Method LayoutSize.Fraction
- Method LayoutSize.Minimum
- Property LayoutSize.Auto
- Property Rows.Sizes
- Property Sized.LayoutSize
Accepted by parameters 3
- Method Columns.Add
- Method Rows.Add
- Constructor Sized.Sized
Methods
public static LayoutSize Fraction(double weight = 1, int min = 0) #A share of the remaining space.
Parameters
- weight double = 1
- Relative weight (default 1).
- min int = 0
- Minimum cells.
public LayoutSize Minimum(int min) #Returns a copy with a different minimum.
Parameters
- min int
- Minimum cells.
public override string ToString() #Returns the fully qualified type name of this instance.
Returns
string The fully qualified type name.Inherited Methods
Properties
public double Value { get; } #Cells for LayoutSizeKind.Fixed, weight for LayoutSizeKind.Fraction.