TextField Control

TextField control for text input.

Control
   TextField

control TextField implements

IDisposable

Constructors

TextField
TextFieldConstructor that takes coordinates.

Properties

HasFrameIf set to true then control has frame, else not. (Default is true).
RoundedFrameIf set to true then the TextField will have rounded border. (Default is false)
ShowFocusRingIf set to true then Focus ring is drawn when focused. (Default is true)
TextSets or gets the text in thee TextField.
EnabledIf set to true the control is enabled, else it is disabled.
TooltipSets or gets the tooltip for the contro.
PlaceholderSets or gets placeholder text for the control.
HasBackgroundColorIf set to true then the BackgroundColor property is used to paint the background of the control.
SelectedTextSets or gets the selected text of the control.
SelectionLengthGets length of current selection.
SelectionStartGets start of current selection.
EditableIf set to true then the text is editable, else the text can be selected but not edited. (Default is true).
BackgroundColorSets background color for the control
TextColorSets or gets the color of the text.
MaximumLengthSets or gets the maximum length of the text in the control.
Width (Inherited) Sets or gets width of the control.
Height (Inherited) Sets or gets height of the control.
Visible (Inherited) Visible state of the control.
Window (Inherited) Gets control’s owner window.
Left (Inherited) Sets or gets controls left location.
Top (Inherited) Sets or gets controls top location.

Methods

DisposeDisposes the control.
OnGotFocus (Protected) A GotFocus function that can be overridden when inheriting from the control.
OnKeyDown (Protected) A OnKeyDown function that can be overridden when inheriting from the control.
OnKeyUp (Protected) A OnKeyUp function that can be overridden when inheriting from the control.
OnLostFocus (Protected) A OnLostFocus function that can be overridden when inheriting from the control.
OnTextChanged (Protected)
OnTextChanged (Protected) A TextChanged function that can be overridden when inheriting from the control.
SelectSelects text by supplied range in the control.
SelectAllSelects all text in the control.
SetFocus (Inherited) Sets focus.

Events

GotFocusThis event is fired when the control gets focus.
KeyDownThis event is fired when key is pressed down.
KeyUp
LostFocusThis event is fired when the control looses focus.
TextChangedThis event is fired when the text changes in the TextField. The ActionEventArgs object can be queried to get to know if event originated from user or from code.