Exemple #1
0
 public void CheckPaste(InputState state)
 {
     if (TextUtils.IsPaste(state))
     {
         if (highlightStart != highlightEnd)
         {
             ProcessHighlight(state, true);
         }
         contents[cursorPos.Y] = contents[cursorPos.Y].Insert(cursorPos.X, System.Windows.Forms.Clipboard.GetText());
         UpdateRawText();
         contents = WordWrap.Wrap(rawContents, bounds.Width, WordWrap.MeasureWidth);
     }
 }
Exemple #2
0
 public void SetNewBounds(Rectangle bounds)
 {
     this.bounds      = bounds;
     this.border.Rect = bounds;
     this.contents    = WordWrap.Wrap(rawContents, bounds.Width, WordWrap.MeasureWidth);
 }
Exemple #3
0
 public void SetText(string text)
 {
     rawContents   = text;
     this.contents = WordWrap.Wrap(rawContents, bounds.Width, WordWrap.MeasureWidth);
 }