Table of Contents

Class TextBox

Namespace
Xui.Core.UI
Assembly
Xui.Core.dll

A single-line text input view implemented as LayerView<View, FocusBorderLayer<View, TextInputLayer>>. All text editing state, selection, caret blinking, and hit-testing live in TextInputLayer; focus-aware border drawing lives in FocusBorderLayer<TView, TChild>.

public class TextBox : LayerView<View, FocusBorderLayer<View, TextInputLayer>>, ILayerHost, IServiceProvider
Inheritance
TextBox
Implements
Inherited Members
Extension Methods

Constructors

TextBox()

public TextBox()

Properties

Color

public Color Color { get; set; }

Property Value

Color

Focusable

Gets whether this view can receive keyboard focus via Tab navigation.

public override bool Focusable { get; }

Property Value

bool

FontFamily

public string[] FontFamily { get; set; }

Property Value

string[]

FontSize

public NFloat FontSize { get; set; }

Property Value

NFloat

FontStretch

public FontStretch FontStretch { get; set; }

Property Value

FontStretch

FontStyle

public FontStyle FontStyle { get; set; }

Property Value

FontStyle

FontWeight

public FontWeight FontWeight { get; set; }

Property Value

FontWeight

InputFilter

public Func<char, bool>? InputFilter { get; set; }

Property Value

Func<char, bool>

IsPassword

public bool IsPassword { get; set; }

Property Value

bool

SelectAllOnFocus

public bool SelectAllOnFocus { get; set; }

Property Value

bool

SelectedColor

public Color SelectedColor { get; set; }

Property Value

Color

Selection

public Interval<uint>.ClosedOpen Selection { get; set; }

Property Value

Interval<uint>.ClosedOpen

SelectionBackgroundColor

public Color SelectionBackgroundColor { get; set; }

Property Value

Color

Text

public string Text { get; set; }

Property Value

string