public void OnFocus() { if (this.multiline) { int num = 0; this.selectIndex = num; this.cursorIndex = num; } else { this.SelectAll(); } this.m_HasFocus = true; }
public static void CopyToClipboard(string str) { TextEditor te = new TextEditor(); te.text = str; te.OnFocus(); te.Copy(); }