Beispiel #1
0
 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);
         }
     }
 }
Beispiel #2
0
 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);
         }
     }
 }