public virtual void ReplaceText(String str, int start, int end) { lock (this) { TextAreaPeer peer = (TextAreaPeer)this.Peer_Renamed; if (peer != null) { peer.ReplaceRange(str, start, end); } else { Text_Renamed = Text_Renamed.Substring(0, start) + str + Text_Renamed.Substring(end); } } }
public virtual void InsertText(String str, int pos) { lock (this) { TextAreaPeer peer = (TextAreaPeer)this.Peer_Renamed; if (peer != null) { peer.Insert(str, pos); } else { Text_Renamed = Text_Renamed.Substring(0, pos) + str + Text_Renamed.Substring(pos); } } }