Table of Contents

Interface IDOMMeasurable

Namespace
SharpConsoleUI.Layout
Assembly
SharpConsoleUI.dll

Interface for controls that support native DOM-based measurement only. Controls implementing this interface provide optimized size calculation.

public interface IDOMMeasurable

Methods

MeasureDOM(LayoutConstraints)

Measures the control's desired size given the available constraints.

LayoutSize MeasureDOM(LayoutConstraints constraints)

Parameters

constraints LayoutConstraints

The layout constraints (min/max width/height).

Returns

LayoutSize

The desired size of the control.