Click or drag to resize

TextBox Class

Single line text box control
Inheritance Hierarchy

Namespace:  Eto.Forms
Assembly:  Eto (in Eto.dll) Version: 2.4.0
Syntax
public class TextBox : TextControl

The TextBox type exposes the following members.

Constructors
  NameDescription
Public methodTextBox
Initializes a new instance of the TextBox class
Top
Properties
  NameDescription
Public propertyAutoSelectMode
Gets or sets the auto selection mode.
Public propertyCaretIndex
Gets or sets the index of the current insertion point.
Public propertyMaxLength
Gets or sets the maximum length of the text that can be entered in the control, 0 for no limit.
Public propertyPlaceholderText
Gets or sets the placeholder text to show as a hint of what the user should enter.
Public propertyReadOnly
Gets or sets a value indicating whether this TextBox is read only.
Public propertySelectedText
Gets or sets the selected text.
Public propertySelection
Gets or sets the current text selection.
Public propertyShowBorder
Gets or sets a value indicating whether to show the control's border.
Public propertyTextAlignment
Gets or sets the alignment of the text in the entry box.
Top
Methods
  NameDescription
Protected methodGetCallback
Gets an instance of an object used to perform callbacks to the widget from handler implementations
(Overrides TextControlGetCallback.)
Protected methodOnTextChanging
Raises the TextChanging event.
Public methodSelectAll
Selects all of the text in the control.
Top
Events
  NameDescription
Public eventTextChanging
Event to handle before the text is changed to allow cancelling any change events triggered by the user.
Top
Fields
  NameDescription
Public fieldStatic memberTextChangingEvent
Event identifier for handlers when attaching the TextChanging event
Top
See Also