Version

WebTextEditor class Members

The following tables list the members exposed by WebTextEditor.

Public Constructors
 NameDescription
Public ConstructorWebTextEditor Constructor  
Public Properties
 NameDescription
Public PropertyautoPostBackOnCustomButtonClickGets sets option to trigger postback on CustomButton click. Not 0 value means that full (1) or async (2) postback will be raised when Enter key is pressed. Note: new value does not persist to server. True: postback on button click  
Public PropertyautoPostBackOnEnterKeyDownGets sets option to trigger postback when Enter key was pressed. Not 0 value means that full (1) or async (2) postback will be raised when Enter key is pressed. Note: new value does not persist to server. True: postback on enter key  
Public PropertyautoPostBackOnValueChangeGets sets option to trigger postback when value was changed (after lost focus or similar). Not 0 value means that full (1) or async (2) postback will be raised when Enter key is pressed. Note: new value does not persist to server. True: postback on value change  
Public PropertyenabledGets sets enabled state of control.True: enabled  
Public PropertyhideEnterGets sets option to hide the Enter keydown event from browser. Note: new value does not persist to server. True: hide enter key  
Public PropertyinputElementGets reference to edit field. Reference to INPUT or TEXTAREA html element.  
Public PropertymaxLengthGets sets maximum length of text. Value of 0, means that maximum length is not set. Note: new value does not persist to server. Maximum length  
Public PropertynullTextGets sets text which is used when value is not set (null or empty string) and control has no focus. Note: new value does not persist to server. Text for null value  
Public PropertyreadOnlyGets sets read-only state of control.True: read only  
Public PropertyselectionOnFocusGets sets option which is used for selection when control gets focus. Note: new value does not persist to server. Possible values: 0 - select all text, 1 - unselect all and set caret to the beginning, 2 - unselect all and set caret to the end, 3 - browser default.  
Public PropertyspinDelayGets sets value in milliseconds which is used to delay next spin action when spin button is kept pressed. Note: new value does not persist to server. Delay in milliseconds  
Public PropertyspinDownElementGets reference to lower spin button. Reference to TD html element or null.  
Public PropertyspinEnsureFocusGets sets ability to set input focus to control when buttons are clicked. Note: new value does not persist to server. True: ensure focus on spin  
Public PropertyspinOnArrowsGets sets ability of up/down arrow keys to trigger spin actions. Note: new value does not persist to server. True: spin on arrows  
Public PropertyspinOnReadOnlyGets sets ability to modify value in controls by spin actions when read only is enabled. Note: new value does not persist to server. True: spin on read only  
Public PropertyspinSpeedUpGets sets rate to increase frequency of spin events if spin button is kept pressed. Note: new value does not persist to server. Speed up rate on spin  
Public PropertyspinUpElementGets reference to upper spin button. Reference to TD html element or null.  
Public PropertytextGets sets text in control.Current text  
Public PropertyvalueGets sets value in control.  
Public Methods
 NameDescription
Public MethoddisposeDisposes object and event handlers.  
Public MethodfindFinds WebTextEditor by its client ID.  
Public MethodfocusSes input focus to control with delay.  
Public MethodfromCasts passed in object to the WebTextEditor type.  
Public MethodgetSelectedTextGets selected text. It also calculates internal variable for end and start selection.  
Public MethodgetSelectionGets position of start or end selection. Note: that method calls getSelectedText().  
Public MethodgetSpinButtonIDGets index of spin button which is involved in current mouse event of browser. That can be used while processing mouse events of control.  
Public MethodhasFocusChecks if control has input focus.  
Public MethodinitializeInitializes instance of WebTextEditor.  
Public MethodpasteTriggers paste action in control.  
Public MethodselectSets selection and caret position in control.  
Public MethodsetFocusSes input focus to control without delay.  
Public MethodspinTriggers spin event.  
See Also