Method FormatAndGetSize | Terminal.Gui v2 (original) (raw)

Table of Contents

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 andConstrainToHeight.

Returns

Size

The size required to hold the formatted text.

Remarks

Causes a format, resetting NeedsFormat to false.

Edit this page