Skip to main content
Version: 1.0.0-preview.34

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.ObjectControlBase → 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

System.Drawing.Color

CursorWidth

Gets or sets the width of the cursor.

public int CursorWidth { get; set; }

Property Value

System.Int32

FontSize

Gets or sets the size of the font of the text box.

public uint FontSize { get; set; }

Property Value

System.UInt32

Height

Gets the height of the TextBox.

public override uint Height { get; }

Implements Height

Property Value

System.UInt32

Position

Gets or sets the position of the TextBox on the screen.

public override System.Drawing.Point Position { get; set; }

Implements Position

Property Value

System.Drawing.Point

SelectedText

Gets the selected text.

public string SelectedText { get; }

Property Value

System.String

SelectedTextColor

Gets or sets the color of the selected text.

public System.Drawing.Color SelectedTextColor { get; set; }

Property Value

System.Drawing.Color

SelectionColor

Gets or sets the color of the text selection rectangle.

public System.Drawing.Color SelectionColor { get; set; }

Property Value

System.Drawing.Color

Text

Gets or sets the text in the TextBox.

public string Text { get; set; }

Property Value

System.String

TextColor

Gets or sets the color of the text.

public System.Drawing.Color TextColor { get; set; }

Property Value

System.Drawing.Color

Width

Gets or sets the width of the TextBox.

public override uint Width { get; set; }

Implements Width

Property Value

System.UInt32

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)