Table of Contents

Class LayoutAllocation

Namespace
SharpConsoleUI.Core
Assembly
SharpConsoleUI.dll

Represents the allocated space for a control after layout calculation

public record LayoutAllocation : IEquatable<LayoutAllocation>
Inheritance
LayoutAllocation
Implements
Inherited Members

Fields

Empty

Empty layout allocation with no allocated space.

public static readonly LayoutAllocation Empty

Field Value

LayoutAllocation

Properties

AllocatedHeight

Height allocated to the control

public int AllocatedHeight { get; init; }

Property Value

int

AllocatedWidth

Width allocated to the control

public int AllocatedWidth { get; init; }

Property Value

int

IsBelowMinimum

True if the allocation is below the control's minimum requirements

public bool IsBelowMinimum { get; init; }

Property Value

bool

UpdateTime

When this allocation was made

public DateTime UpdateTime { get; init; }

Property Value

DateTime