Velaptor.UI.TextBox
Velaptor
Velaptor.UI
TextBox Class
Provides the ability to enter text into a box.
public sealed class TextBox : Velaptor.UI.ControlBase
Inheritance System.Object → ControlBase → TextBox
Constructors
TextBox() Constructor
Initializes a new instance of the TextBox class.
public TextBox();
Properties
CursorColor
Gets or sets the color of the cursor.
public System.Drawing.Color CursorColor { get; set; }
Property Value
CursorWidth
Gets or sets the width of the cursor.
public int CursorWidth { get; set; }
Property Value
FontSize
Gets or sets the size of the font of the text box.
public uint FontSize { get; set; }
Property Value
Height
Gets the height of the TextBox.
public override uint Height { get; }
Implements Height
Property Value
Position
Gets or sets the position of the TextBox on the screen.
public override System.Drawing.Point Position { get; set; }
Implements Position
Property Value
SelectedText
Gets the selected text.
public string SelectedText { get; }
Property Value
SelectedTextColor
Gets or sets the color of the selected text.
public System.Drawing.Color SelectedTextColor { get; set; }
Property Value
SelectionColor
Gets or sets the color of the text selection rectangle.
public System.Drawing.Color SelectionColor { get; set; }
Property Value
Text
Gets or sets the text in the TextBox.
public string Text { get; set; }
Property Value
TextColor
Gets or sets the color of the text.
public System.Drawing.Color TextColor { get; set; }
Property Value
Width
Gets or sets the width of the TextBox.
public override uint Width { get; set; }
Implements Width
Property Value
Methods
LoadContent()
Loads the content of the TextBox.
public override void LoadContent();
Implements LoadContent()
Render()
Renders the control to the screen.
public override void Render();
Implements Render()
Update(FrameTime)
Updates the text box.
public override void Update(Velaptor.FrameTime frameTime);
Parameters
frameTime
FrameTime
The amount of time that has passed for the current frame.
Implements Update(FrameTime)