Table of Contents

Method FormatAndGetSize

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

FormatAndGetSize(Size?)

Gets the size required to hold the formatted text, given the constraints placed by ConstrainToSize.

public Size FormatAndGetSize(Size? constrainSize = null)

Parameters

constrainSize Size?

If provided, will cause the text to be constrained to the provided size instead of ConstrainToWidth and ConstrainToHeight.

Returns

Size

The size required to hold the formatted text.

Remarks

Causes a format, resetting NeedsFormat to false.