Class TextBox
Implements control so user can draw or edit text
Inheritance
System.Object
TextBox
Inherited Members
Namespace: EmptyKeys.UserInterface.Controls
Assembly: EmptyKeys.UserInterface.dll
Syntax
public class TextBox : TextBoxBase
Constructors
TextBox()
Initializes a new instance of the TextBox class.
Declaration
public TextBox()
Fields
MaxLengthProperty
The maximum length property
Declaration
public static readonly DependencyProperty MaxLengthProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
TextProperty
The text property
Declaration
public static readonly DependencyProperty TextProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
MaxLength
Gets or sets the maximum length.
Declaration
public int MaxLength { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The maximum length. |
SelectedText
Gets the selected text.
Declaration
public string SelectedText { get; }
Property Value
Type | Description |
---|---|
System.String | The selected text. |
Text
Gets or sets the text.
Declaration
public string Text { get; set; }
Property Value
Type | Description |
---|---|
System.String | The text. |
Methods
OnGamepadDown(GamepadButtonEventArgs)
Raises the GamepadDown event.
Declaration
protected override void OnGamepadDown(GamepadButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
GamepadButtonEventArgs | e | The GamepadButtonEventArgs instance containing the event data. |
Overrides
OnTextPropertyChanged(String, String)
Called when [text property changed].
Declaration
protected virtual void OnTextPropertyChanged(string oldText, string newText)
Parameters
Type | Name | Description |
---|---|---|
System.String | oldText | The old text. |
System.String | newText | The new text. |
Select(Int32, Int32)
Selects a range of the text
Declaration
public void Select(int start, int length)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | start | The start. |
System.Int32 | length | The length. |