Table of Contents

Method GetEncodingLength

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

GetEncodingLength(Rune, Encoding)

Get number of bytes required to encode the rune, based on the provided encoding.

public static int GetEncodingLength(this Rune rune, Encoding encoding = null)

Parameters

rune Rune

The rune to probe.

encoding Encoding

The encoding used; the default is UTF8.

Returns

int

The number of bytes required.

Remarks

This is a Terminal.Gui extension method to Rune to support TUI text manipulation.