 ASPxClientTextEdit.prototype.GetText=function(){return this.GetValue();}
ASPxClientTextEdit.prototype.SetText=function(value){this.SetValue(value);}
ASPxClientEdit.prototype.RaiseKeyDown=function(evt){if(!this.KeyDown.IsEmpty()){var args=new ASPxClientEditKeyEventArgs(evt);this.KeyDown.FireEvent(this,args);}}
ASPxClientEdit.prototype.RaiseKeyPress=function(evt){if(!this.KeyPress.IsEmpty()){var args=new ASPxClientEditKeyEventArgs(evt);this.KeyPress.FireEvent(this,args);}}
ASPxClientEdit.prototype.RaiseKeyUp=function(evt){if(!this.KeyUp.IsEmpty()){var args=new ASPxClientEditKeyEventArgs(evt);this.KeyUp.FireEvent(this,args);}}
ASPxClientTextEdit.prototype.RaiseTextChanged=function(){var processOnServer=this.autoPostBack;if(!this.TextChanged.IsEmpty()){var args=new ASPxClientProcessingModeEventArgs(processOnServer);this.TextChanged.FireEvent(this,args);processOnServer=args.processOnServer;}return processOnServer;}
ASPxClientTextEdit.prototype.SelectAll=function(){this.SetSelection(0,-1,false);}
ASPxClientTextEdit.prototype.SetCaretPosition=function(pos){if(pos==-1)pos=this.GetValue().length;this.SetSelection(pos,pos,true);}
ASPxClientTextEdit.prototype.SetSelection=function(startPos,endPos,scrollToSelection){var textLen=this.GetValue().length;if(endPos==-1||endPos>textLen)endPos=textLen;if(startPos>textLen)startPos=textLen;if(startPos>endPos)return;var inputElement=this.FindInputElement();if(__aspxIE){var range=inputElement.createTextRange();range.collapse(true);range.moveStart("character",startPos);range.moveEnd("character",endPos-startPos);range.select();}else{inputElement.setSelectionRange(startPos,endPos);}if(scrollToSelection&&inputElement.tagName.toUpperCase()=='TEXTAREA'){var scrollHeight=inputElement.scrollHeight;var approxCaretPos=startPos;var scrollTop=Math.max(Math.round((approxCaretPos/textLen)*scrollHeight-inputElement.clientHeight/2),0);inputElement.scrollTop=scrollTop;}}
ASPxClientButtonEditBase.prototype.RaiseButtonClick=function(number){var processOnServer=this.autoPostBack;if(!this.ButtonClick.IsEmpty()){var args=new ASPxClientButtonEditClickEventArgs(processOnServer,number);this.ButtonClick.FireEvent(this,args);processOnServer=args.processOnServer;}return processOnServer;}
ASPxClientButtonEditClickEventArgs=_aspxCreateClass(ASPxClientProcessingModeEventArgs,{constructor:function(processOnServer,buttonIndex){this.constructor.prototype.constructor.call(this,processOnServer);this.buttonIndex=buttonIndex;}});ASPxClientEditKeyEventArgs=_aspxCreateClass(ASPxClientEventArgs,{constructor:function(htmlEvent){this.constructor.prototype.constructor.call(this);this.htmlEvent=htmlEvent;}}); 