Ejemplo n.º 1
0
 public virtual Dimension MinimumSize(int rows, int columns)
 {
     lock (TreeLock)
     {
         TextAreaPeer peer = (TextAreaPeer)this.Peer_Renamed;
         return((peer != null) ? peer.GetMinimumSize(rows, columns) : base.MinimumSize());
     }
 }
Ejemplo n.º 2
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);
         }
     }
 }
Ejemplo n.º 3
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);
         }
     }
 }