Class TextBox
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
Focusable
Gets whether this view can receive keyboard focus via Tab navigation.
public override bool Focusable { get; }
Property Value
FontFamily
public string[] FontFamily { get; set; }
Property Value
- string[]
FontSize
public NFloat FontSize { get; set; }
Property Value
FontStretch
public FontStretch FontStretch { get; set; }
Property Value
FontStyle
public FontStyle FontStyle { get; set; }
Property Value
FontWeight
public FontWeight FontWeight { get; set; }
Property Value
InputFilter
public Func<char, bool>? InputFilter { get; set; }
Property Value
IsPassword
public bool IsPassword { get; set; }
Property Value
SelectAllOnFocus
public bool SelectAllOnFocus { get; set; }
Property Value
SelectedColor
public Color SelectedColor { get; set; }
Property Value
Selection
public Interval<uint>.ClosedOpen Selection { get; set; }
Property Value
SelectionBackgroundColor
public Color SelectionBackgroundColor { get; set; }
Property Value
Text
public string Text { get; set; }