Table of Contents

Operator explicit operator

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

explicit operator Rune(Key)

Explicitly cast a Key to a Rune. The conversion is lossy because properties such as Handled are not encoded in KeyCode.

public static explicit operator Rune(Key kea)

Parameters

kea Key

Returns

Rune

Remarks

Uses AsRune.

explicit operator uint(Key)

Explicitly cast Key to a uint. The conversion is lossy because properties such as Handled are not encoded in KeyCode.

public static explicit operator uint(Key kea)

Parameters

kea Key

Returns

uint

explicit operator KeyCode(Key)

Explicitly cast Key to a KeyCode. The conversion is lossy because properties such as Handled are not encoded in KeyCode.

public static explicit operator KeyCode(Key key)

Parameters

key Key

Returns

KeyCode