示例#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);
     }
 }
示例#2
0
 public void SetNewBounds(Rectangle bounds)
 {
     this.bounds      = bounds;
     this.border.Rect = bounds;
     this.contents    = WordWrap.Wrap(rawContents, bounds.Width, WordWrap.MeasureWidth);
 }
示例#3
0
 public void SetText(string text)
 {
     rawContents   = text;
     this.contents = WordWrap.Wrap(rawContents, bounds.Width, WordWrap.MeasureWidth);
 }