Table of Contents

Method ClipOrPad

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

ClipOrPad(string, int)

Adds trailing whitespace or truncates text so that it fits exactly width columns. Note that some unicode characters take 2+ columns

public static string ClipOrPad(string text, int width)

Parameters

text string
width int

Returns

string