Table of Contents

Method GetColumnsRequiredForVerticalText

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

GetColumnsRequiredForVerticalText(List<string>, int, int, int)

Returns the number of columns required to render lines oriented vertically.

public static int GetColumnsRequiredForVerticalText(List<string> lines, int startLine = -1, int linesCount = -1, int tabWidth = 0)

Parameters

lines List<string>

The lines.

startLine int

The line in the list to start with (any lines before will be ignored).

linesCount int

The number of lines to process (if less than lines.Count, any lines after will be ignored).

tabWidth int

The number of columns used for a tab.

Returns

int

The width required.

Remarks

This API will return incorrect results if the text includes glyphs whose width is dependent on surrounding glyphs (e.g. Arabic).