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